import type { Tag } from '@malloydata/malloy-tag';
import type { VegaChartProps, VegaConfigHandler } from './types';
import type { ResultStore } from './result-store/result-store';
import type { Runtime } from 'vega';
import { type RootCell } from '../data_tree';
export type GetResultMetadataOptions = {
    getVegaConfigOverride?: VegaConfigHandler;
    parentSize: {
        width: number;
        height: number;
    };
};
export interface FieldVegaInfo {
    runtime: Runtime | null;
    props: VegaChartProps | null;
    error: Error | null;
}
export interface RenderMetadata {
    store: ResultStore;
    vega: Record<string, FieldVegaInfo>;
    root: RootCell;
    parentSize: {
        width: number;
        height: number;
    };
    renderAs: string;
}
export declare function getResultMetadata(root: RootCell, options?: GetResultMetadataOptions): RenderMetadata;
export declare function shouldRenderChartAs(tag: Tag): string | undefined;
