UNPKG

matterbridge-aeg-robot

Version:

A Matterbridge plugin that connects AEG RX 9 / Electrolux Pure i9 robot vacuums to the Matter smart home ecosystem.

17 lines 1.3 kB
import { AnsiLogger } from 'matterbridge/logger'; import { IErrorDetail } from 'ts-interface-checker'; export declare const MS = 1000; export type Constructor<T = object> = new (...args: any[]) => T; export declare function assertIsDefined<Type>(value: Type): asserts value is NonNullable<Type>; export declare function assertIsNotUndefined<Type>(value: Type): asserts value is Exclude<Type, undefined>; export declare function assertIsInstanceOf<Type extends object>(value: unknown, type: Constructor<Type>): asserts value is Type; export declare function logError(log: AnsiLogger, when: string, err: unknown): void; export declare function formatMilliseconds(ms: number, maxParts?: number): string; export declare function formatSeconds(seconds: number, maxParts?: number): string; export declare function formatDateISO8601(date: Date, separator: '' | '-'): string; export declare function formatList(items: string[]): string; export declare function plural(count: number, noun: string | [string, string], showCount?: boolean): string; export declare function columns(rows: string[][], separator?: string): string[]; export declare function deepMerge(...objects: object[]): object; export declare function getValidationTree(errors: IErrorDetail[]): string[]; //# sourceMappingURL=utils.d.ts.map