import ErrorStackParser from 'error-stack-parser'; type NonUndefined = T extends undefined ? never : T; declare class Utility { static null(): void; static hideKeys(obj: T, keys: (keyof T)[]): Partial; static isMeaningful(object: T): object is NonUndefined; static isUndefined(object: any): object is undefined; static mapToJSON(map: Map): { [k: string]: T; }; static parseInt(value: string): number; static randomInt(begin: number, end: number): number; static randomOne(array: T[]): T; static randomOneByWeight(array: T[], weighter: (ele: T) => number): T | null; static formatLogTimeString(): string; static deepCopy(obj: T): T; } declare class UnixTime { static fromNodeTime(ms: number): number; static fromDate(date: Date): number; static now(): number; static day(days: number): number; static hour(hours: number): number; static minute(minutes: number): number; static second(seconds: number): number; } declare class NodeTime { static fromUnixTime(second: number): number; static fromDate(date: Date): number; static now(): number; static day(days: number): number; static hour(hours: number): number; static minute(minutes: number): number; static second(seconds: number): number; } export declare class NanoTime { private static readonly originEpochNanos; private static readonly originHrTimeNanos; static now(): bigint; } declare class ArrayMap extends Map { constructor(); append(k: K, value: T): void; sureGet(k: K): T[]; remove(k: K, value: T): void; } declare class StackUtility { static getStack(): string[]; static getStackPosition(depth: number): string; static getStackFile(depth: number): string; static findNearestStack(out: string): ErrorStackParser.StackFrame; static getInstantiationStack(targetConstructor: Function): ErrorStackParser.StackFrame; static formatFileName(filePath: string): string; private static normalizePath; } export { ArrayMap, NodeTime, StackUtility, UnixTime, Utility }; //# sourceMappingURL=Utility.d.ts.map