import { LoaderFunction, Args } from '@storybook/types';
import { HtmlRenderer } from '@storybook/html';
import { DuckDBWASMConnection } from '@malloydata/db-duckdb/wasm';
import type * as Malloy from '@malloydata/malloy-interfaces';
export type QueryOptions = {
    script: string;
    source: string;
    view: string;
    connection: Promise<DuckDBWASMConnection>;
};
export declare function createLoader(script: string): LoaderFunction<HtmlRenderer, Args>;
export declare function loadModel({ script, connection, }: {
    script: string;
    connection: Promise<DuckDBWASMConnection>;
}): Promise<import('@malloydata/malloy').ModelMaterializer>;
export declare function runQuery({ script, source, view, connection, }: QueryOptions): Promise<Malloy.Result>;
type RenderOptions = QueryOptions & {
    classes?: '';
};
export declare function renderMalloyLegacy(options: RenderOptions): HTMLDivElement;
export {};
