2020-09-21 08:14:06 +03:00
|
|
|
/// <reference types="node" />
|
|
|
|
export declare function repeat(char: string, length: number): string;
|
|
|
|
export declare function sha256(content: Buffer): string;
|
|
|
|
export declare function sortRecords(record: Record<string, any>): Record<string, any>;
|
|
|
|
export declare function atomicWrite(path: string, value: string | Uint8Array): void;
|
|
|
|
export declare function loadJson(path: string): any;
|
|
|
|
export declare function saveJson(filename: string, data: any, sort?: boolean): any;
|
2020-09-23 05:54:48 +03:00
|
|
|
export declare function resolveProperties(props: Record<string, Promise<any>>): Promise<Record<string, any>>;
|
2020-09-23 07:23:02 +03:00
|
|
|
export declare function mkdir(path: string): void;
|
2020-09-26 10:27:47 +03:00
|
|
|
export declare function getDateTime(date: Date): string;
|