mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 00:43:04 +00:00
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
import Config, { RecordHash, RecordMate } from './config';
|
|
export type RecordProps = {
|
|
config: Config;
|
|
};
|
|
declare class Record {
|
|
private config;
|
|
constructor(options: RecordProps);
|
|
getHosts(): string[];
|
|
getHash(): RecordHash;
|
|
contains(hosts: string[]): boolean;
|
|
equal(hash: RecordHash): boolean;
|
|
update(record: RecordMate): Promise<void>;
|
|
}
|
|
export default Record;
|