export type RuntimeEventHandler<E extends Event = Event> = (event: E) => void;
/**
 * Subscribe to `runtime.events` with a stable listener and automatic cleanup.
 *
 * This avoids re-subscribing on every render while still calling the latest handler.
 */
export declare const useRuntimeEventListener: <E extends Event = Event>(type: string, handler: RuntimeEventHandler<E>, deps?: unknown[], options?: boolean | AddEventListenerOptions) => void;
//# sourceMappingURL=useRuntimeEventListener.d.ts.map