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