import { CubeApi } from '@cubejs-client/core';
import { default as React } from 'react';

type CubeApiContextType = {
    cubeApiGet: CubeApi | null;
    cubeApiPost: CubeApi | null;
    apiUrl: string | null;
    token: string | null;
};
export declare const useActiveCubeApiContext: <Selected = CubeApiContextType>(selector?: ((value: CubeApiContextType) => Selected) | undefined, eqlFn?: import('../utils').EqualityFn<Selected> | undefined) => Selected, ActiveCubeApiContext: import('use-context-selector').Context<CubeApiContextType>;
export declare function useActiveCubeApi(method?: 'GET' | 'POST'): CubeApi | null;
type CubeApiContextProviderProps = {
    children: React.ReactNode;
    token: string;
    apiUrl: string;
};
export declare const CubeApiContextProvider: React.NamedExoticComponent<CubeApiContextProviderProps>;
export {};
//# sourceMappingURL=CubeApiContextProvider.d.ts.map