import type { CalendarDetails, CallServiceCommand, HomeAssistantEvent, Config, EventDetails, GetHistoryParams, GetLogbookParams, HassArea, HassDevice, HassEntity, IHomeAssistant, LogBookEntry, Panel, Service, ServiceDomainDetails, State } from '@hass-blocks/hass-ts'; /** * A mock implementation of the Home Assistant client. Used for testing purposes */ export declare class TestHassClient implements IHomeAssistant { private states; private services; private serviceCalls; private triggers; private eventCallbacksWithType; private eventCallbacks; constructor(states: State[], services: Record>); getStates(): Promise; registerTrigger(trigger: Record, callback: (event: unknown) => void | Promise): Promise; fireTrigger(trigger: Record): Promise; fireEvent(message: HomeAssistantEvent): Promise; off(_id: string): void; on(callback: (message: HomeAssistantEvent) => void): Promise; on(type: TEventType, callback: (message: Exclude; }>) => void): Promise; callService(params: Omit): Promise; getServiceCalls(): Omit, "id" | "type">[]; getHistory(_params: GetHistoryParams): Promise; getAreas(): Promise; getLogbook(_params?: GetLogbookParams): Promise; getEntities(): Promise; getDevices(): Promise; getState(_entityId: string): Promise; getConfig(): Promise; getServices(): Promise>>; getServiceDomains(): Promise; getPanels(): Promise>; getCalendars(): Promise; getEvents(): Promise; getErrorLog(): Promise; close(): Promise; [Symbol.asyncDispose](): Promise; } /** * @public * * You can use this function to initialise Hass Blocks with the Home Assistant instance stubbed out * with an instance of {@link TestHassClient} which will allow you to simulate event firing and triggers * and inspect the actions that are taken * * @param config - configuration for the test Hass Client */ export declare const initialiseTestBlocks: (config: { states: State[]; services: Record>; }) => Promise<{ blocks: import("../index.ts").IBlocksConnection; hass: TestHassClient; }>; //# sourceMappingURL=initialise-test-blocks.d.ts.map