import type { TestResultSummary } from '@duckcodeailabs/dql-project'; /** * A block test assertion parsed from DQL `tests { assert ... }` blocks. */ export interface BlockTestAssertion { name: string; sql: string; operator: '>' | '<' | '>=' | '<=' | '==' | '!=' | 'IN'; threshold: number | string | boolean | Array; } /** * QueryExecutor is an adapter interface for running SQL queries. * Implementations can use DuckDB, Postgres, etc. */ export interface QueryExecutor { execute(sql: string, params?: Record): Promise[]>; } /** * TestRunner executes block test assertions against a database. */ export declare class TestRunner { private executor; constructor(executor: QueryExecutor); /** * Run all assertions for a block and return a summary. */ runTests(assertions: BlockTestAssertion[], params?: Record): Promise; /** * Run a single assertion. */ private runAssertion; } //# sourceMappingURL=test-runner.d.ts.map