/**
 * 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<number>('apply-pricing', (price) => {
 *   priceField.value = price
 * })
 */
export declare function useClientEvent<T = unknown>(eventName: string, handler: (payload: T) => void): void;
