import React from 'react'; import { VizSpecStore } from './visualSpecStore'; import { IComputationFunction, IDefaultConfig, IMutField } from '../interfaces'; export declare const VisContext: React.Context; interface VizStoreWrapperProps { keepAlive?: boolean | string; storeRef?: React.RefObject; children?: React.ReactNode; meta: IMutField[]; onMetaChange?: (fid: string, meta: Partial) => void; defaultConfig?: IDefaultConfig; defaultTab?: 'data' | 'visualization'; defaultRenderer?: 'vega-lite' | 'observable-plot'; } export declare const VizStoreWrapper: (props: VizStoreWrapperProps) => React.JSX.Element; export declare function useVizStore(): VizSpecStore; export declare const ComputationContext: React.Context; export declare function useCompututaion(): IComputationFunction; export declare function withTimeout(f: (...args: T) => Promise, timeout: number): (...args: T) => Promise>; export declare function withErrorReport(f: (...args: T) => Promise, onError: (err: string | Error) => void): (...args: T) => Promise; export {};