import { destructor } from '@synnaxlabs/x';
import { PropsWithChildren, ReactElement } from 'react';
import { Callback, MatchOptions, Trigger } from './triggers';
export interface Listen {
    (callback: Callback): destructor.Destructor;
}
export interface ContextValue {
    listen: Listen;
}
declare const useContext: () => ContextValue;
export { useContext };
export interface ProviderProps extends PropsWithChildren {
    preventDefaultOn?: Trigger[];
    preventDefaultOptions?: MatchOptions;
}
export declare const Provider: ({ children, preventDefaultOn, preventDefaultOptions, }: ProviderProps) => ReactElement;
//# sourceMappingURL=Provider.d.ts.map