config.d.ts 543 B

123456789101112131415161718192021222324252627
  1. export declare type RecordMate = {
  2. /**
  3. * The hosts that have generated certificate
  4. */
  5. hosts: string[];
  6. /**
  7. * file hash
  8. */
  9. hash?: RecordHash;
  10. };
  11. export declare type RecordHash = {
  12. key?: string;
  13. cert?: string;
  14. };
  15. declare class Config {
  16. /**
  17. * The mkcert version
  18. */
  19. private version;
  20. private record;
  21. init(): Promise<void>;
  22. private serialize;
  23. merge(obj: Record<string, any>): Promise<void>;
  24. getRecord(): RecordMate;
  25. getVersion(): string;
  26. }
  27. export default Config;