@koush/ring-client-api
Version:
Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting
22 lines (21 loc) • 1.14 kB
TypeScript
interface Logger {
logInfo: (message: string) => void;
logError: (message: string) => void;
}
export declare function delay(milliseconds: number): Promise<unknown>;
export declare function logDebug(message: any): void;
export declare function logInfo(message: any): void;
export declare function logError(message: any): void;
export declare function useLogger(newLogger: Logger): void;
export declare function enableDebug(): void;
export declare function generateUuid(seed?: string): string;
export declare function getHardwareId(systemId?: string): Promise<string>;
export declare function requestInput(question: string): Promise<string>;
export declare function stringify(data: any): string;
export declare function mapAsync<T, U>(records: T[], asyncMapper: (record: T) => Promise<U>): Promise<U[]>;
export declare function randomInteger(): number;
export declare function randomString(length: number): string;
export declare type DeepPartial<T> = {
[K in keyof T]?: T[K] extends Array<infer U> ? Array<DeepPartial<U>> : T[K] extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : DeepPartial<T[K]>;
};
export {};