import { SenderHandler, TypedWorker } from '@synnaxlabs/x';
import { PropsWithChildren, ReactElement } from 'react';
export type ContextValue = {
    enabled: true;
    route: <RQ, RS = RQ>(type: string) => TypedWorker<RQ, RS>;
} | {
    enabled: false;
    route: null;
};
export interface ProviderProps extends PropsWithChildren<{}> {
    url: string | URL;
    enabled?: boolean;
}
export declare const Provider: import('react').MemoExoticComponent<({ children, url, enabled }: ProviderProps) => ReactElement | null>;
export declare const use: <RQ, RS = RQ>(type: string) => SenderHandler<RQ, RS> | null;
//# sourceMappingURL=Context.d.ts.map