homebridge-homeconnect
Version:
A Homebridge plugin that connects Home Connect appliances to Apple HomeKit
24 lines • 835 B
TypeScript
import { Logger } from 'homebridge';
import { HomeAppliance } from '../../api-types.js';
export interface CardDescription {
id: string;
icon: string;
name: string;
detail?: string;
}
export declare class Cards {
readonly log: Logger;
readonly parentElement: HTMLElement;
nonApplianceCards: CardDescription[];
applianceCards: CardDescription[];
selectedCardId?: string;
onSelect?: (id?: string) => void;
constructor(log: Logger);
setNonAppliances(cards: CardDescription[]): void;
setAppliances(appliances: HomeAppliance[]): void;
updateCards(): void;
makeCard({ id, icon, name, detail }: CardDescription): DocumentFragment;
loadCardIcon(element: HTMLElement, url: string, id: string): Promise<void>;
selectCard(id?: string): void;
}
//# sourceMappingURL=cards.d.ts.map