import { LogContext } from '@rocicorp/logger';
import type { LiteAndZqlSpec } from '../../zero-cache/src/db/specs.ts';
import type { AnalyzeQueryResult } from '../../zero-protocol/src/analyze-query-result.ts';
import type { AST } from '../../zero-protocol/src/ast.ts';
import type { PermissionsConfig } from '../../zero-schema/src/compiled-permissions.ts';
import type { NameMapper } from '../../zero-schema/src/name-mapper.ts';
import { type BuilderDelegate } from '../../zql/src/builder/builder.ts';
import type { Database } from '../../zqlite/src/db.ts';
export type RunAstOptions = {
    applyPermissions?: boolean | undefined;
    authData?: string | undefined;
    clientToServerMapper?: NameMapper | undefined;
    db: Database;
    host: BuilderDelegate;
    permissions?: PermissionsConfig | undefined;
    syncedRows?: boolean | undefined;
    tableSpecs: Map<string, LiteAndZqlSpec>;
    vendedRows?: boolean | undefined;
};
export declare function runAst(lc: LogContext, ast: AST, isTransformed: boolean, options: RunAstOptions): Promise<AnalyzeQueryResult>;
//# sourceMappingURL=run-ast.d.ts.map