import { observe, primitive } from '@synnaxlabs/x';
export interface UseListenerProps<D> {
    key: primitive.Value[];
    open?: () => Promise<observe.ObservableAsyncCloseable<D> | undefined>;
    onChange: observe.Handler<D>;
}
export declare const useListener: <D>({ key, open, onChange }: UseListenerProps<D>) => void;
//# sourceMappingURL=use.d.ts.map