record.d.ts 428 B

123456789101112131415
  1. import type Config from './config';
  2. import type { RecordHash, RecordMate } from './config';
  3. export type RecordProps = {
  4. config: Config;
  5. };
  6. declare class Record {
  7. private config;
  8. constructor(options: RecordProps);
  9. getHosts(): string[];
  10. getHash(): RecordHash;
  11. contains(hosts: string[]): boolean;
  12. equal(hash: RecordHash): boolean;
  13. update(record: RecordMate): Promise<void>;
  14. }
  15. export default Record;