import { Trigger, Callback } from './triggers';
import { Destructor } from '@synnaxlabs/x';
import { PropsWithChildren, ReactElement } from 'react';

type Listen = (callback: Callback) => Destructor;
export interface ContextValue {
    listen: Listen;
}
export declare const useContext: () => ContextValue;
export interface ProviderProps extends PropsWithChildren {
    preventDefaultOn?: Trigger[];
}
export declare const Provider: ({ children, preventDefaultOn, }: ProviderProps) => ReactElement;
export {};
//# sourceMappingURL=Provider.d.ts.map