import { type IHomeAssistant } from '@hass-blocks/hass-ts'; import type { IBlocksConnection, IBlocksPlugin, ILogger } from '../types/index.ts'; /** * @public * * Configuration object for Hass Blocks */ export interface IBlocksConfig { /** * A list of plugins to be loaded by Hass Blocks */ plugins?: IBlocksPlugin[]; /** * A logger - if not supplied, will fall back to a default logger that uses console.log * and doesn't log trace or debug messages */ logger?: ILogger; /** * An already instantiated version of the Hass client. Used for testing */ client?: IHomeAssistant; } /** * @public * * Bootstrap the connection with Home Assistant and initialise Hass Blocks * * @remarks * Uses {@link hass-ts#getConfig} under the hood, so will read the same environment variables * * @example * ```TypeScript * * const { registry } = await initialiseBlocks() * ``` */ export declare const initialiseBlocks: (args?: IBlocksConfig) => Promise; //# sourceMappingURL=initialise-blocks.d.ts.map