mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-19 16:32:58 +00:00
33 lines
656 B
TypeScript
33 lines
656 B
TypeScript
export type RecordMate = {
|
|
/**
|
|
* The hosts that have generated certificate
|
|
*/
|
|
hosts: string[];
|
|
/**
|
|
* file hash
|
|
*/
|
|
hash?: RecordHash;
|
|
};
|
|
export type RecordHash = {
|
|
key?: string;
|
|
cert?: string;
|
|
};
|
|
export type ConfigOptions = {
|
|
savePath: string;
|
|
};
|
|
declare class Config {
|
|
/**
|
|
* The mkcert version
|
|
*/
|
|
private version;
|
|
private record;
|
|
private configFilePath;
|
|
constructor({ savePath }: ConfigOptions);
|
|
init(): Promise<void>;
|
|
private serialize;
|
|
merge(obj: Record<string, any>): Promise<void>;
|
|
getRecord(): RecordMate;
|
|
getVersion(): string;
|
|
}
|
|
export default Config;
|