import type { AdHocQueryAnalysis } from './query-catalog.js'; import type { SqlfuProjectConfig } from '../types.js'; import type { SqlfuHost } from '../host.js'; export type { AdHocQueryAnalysis, JsonSchema, JsonSchemaObject, QueryCatalog, QueryCatalogArgument, QueryCatalogEntry, QueryCatalogField, } from './query-catalog.js'; export declare function generateQueryTypes(): Promise; export type GenerateQueryTypesResult = { writtenFiles: string[]; }; export declare function generateQueryTypesForConfig(config: SqlfuProjectConfig, host: SqlfuHost): Promise; export declare function generateInlineConfigTypes(input: { modulePath: string; projectRoot: string; host: SqlfuHost; }): Promise; export declare function analyzeAdHocSqlForConfig(config: SqlfuProjectConfig, host: SqlfuHost, sql: string): Promise; export declare function materializeTypegenDatabase(input: { projectRoot: string; sourceSql: string; experimentalJsonTypes: boolean; }): Promise; /** * Read the canonical schema source for the project's chosen typegen * authority. Used by sqlite's `materializeTypegenDatabase` and exported * for pg-side dialects to use for the same purpose. The result is a SQL * string ready to apply to a scratch DB. * * Each authority delegates through dialect methods * (`materializeSchemaSql` / `extractSchemaFromClient`), so the function * itself stays dialect-neutral — adding a new dialect doesn't require * touching this code. */ export declare function readSchemaForAuthority(config: SqlfuProjectConfig, host: SqlfuHost): Promise;