ring-client-api
Version:
Unofficial API for Ring doorbells, cameras, security alarm system and smart lighting
26 lines (25 loc) • 1.39 kB
TypeScript
interface Logger {
logInfo: (...message: string[]) => void;
logError: (message: string) => void;
}
export declare function clearTimeouts(): 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 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 declare function fromBase64(encodedInput: string): string;
export declare function toBase64(input: string): string;
export declare function buildSearchString(search: Record<string, any>): string;
export {};