/** * Listen for a named agent-driven client event dispatched by the Remy chat store. * * When the AI agent calls the `emitClientEvent` tool, the store fires a native * `CustomEvent` on `window` with the given `eventName` and a `detail` matching * the tool's `payload`. Use this composable in any component to cleanly subscribe * and automatically unsubscribe. * * @example * useClientEvent('apply-pricing', (price) => { * priceField.value = price * }) */ export declare function useClientEvent(eventName: string, handler: (payload: T) => void): void;