import { ReactNode } from 'react';
import { PreAggregationDefinition } from '../rollup-designer/utils';
type AddPreAggregationToSchemaResult = {
    error?: string;
};
type CloudProviderContext = {
    isCloud: boolean;
    isAddRollupButtonVisible: boolean;
    addPreAggregationToSchema?: (preAggregationDefinition: PreAggregationDefinition) => Promise<AddPreAggregationToSchemaResult>;
    setContext: (partialContext: Partial<Omit<CloudProviderContext, 'setContext'>>) => void;
};
type CloudProviderProps = {
    children: ReactNode;
    isAddRollupButtonVisible?: boolean;
};
export declare function CloudProvider({ children, isAddRollupButtonVisible }: CloudProviderProps): import("react/jsx-runtime").JSX.Element;
export declare function useCloud(): CloudProviderContext;
export {};
