import { EventCallback, EventSubscription, Unsubscribe } from '@skewedaspect/sage'; /** * Subscribes a handler on the engine bus for as long as the component is mounted, and answers with the * teardown for a component whose subscription ends before it does. The subscription is an event type in * the map or a pattern over it, and the handler runs from a drain (design/ui.md#hearing-events). */ export declare function useSageEvent(subscription: Subscription, handler: EventCallback): Unsubscribe;