/// <reference path="../../src/base-types.d.ts" />
import { CubeApi, Query, TransformedQuery } from '@cubejs-client/core';
import { AvailableMembers } from '@cubejs-client/react';
import { ReactNode } from 'react';
import { SchemaFormat } from '../types';
type RollupDesignerContextValue = {
    error: Error | null;
    isLoading: boolean;
    isModalOpen: boolean;
    toggleModal: (isOpen?: boolean) => void;
    memberTypeCubeMap: AvailableMembers;
    query: Query | null;
    setQuery: (query: Query | null) => void;
    transformedQuery: TransformedQuery | null;
    setTransformedQuery: (transformedQuery: TransformedQuery | null) => void;
    defaultSchemaFormat: SchemaFormat;
};
export declare const Context: import("react").Context<RollupDesignerContextValue>;
type ContextProps = {
    apiUrl: string;
    children: ReactNode;
    cubeApi?: CubeApi;
    token?: string;
    defaultSchemaFormat?: SchemaFormat;
};
export declare function RollupDesignerContext({ cubeApi, children, ...props }: ContextProps): import("react/jsx-runtime").JSX.Element;
export declare function useRollupDesignerContext(): RollupDesignerContextValue;
export {};
