import type { ExpressionNode, SegmentedStatementNode } from "./nodes.js";
type CompileResult = {
    sql: string;
    parameters: ReadonlyArray<unknown>;
};
/**
 * Compiles segmented statements back into SQL text.
 *
 * @example
 * ```ts
 * const ast = parse("SELECT 1");
 * const { sql } = compile(ast);
 * ```
 */
export declare function compile(statements: readonly SegmentedStatementNode[]): CompileResult;
/**
 * Serialises a single expression node to SQL text.
 *
 * @example
 * ```ts
 * const sql = expressionToSql({
 *   node_kind: "parameter",
 *   placeholder: "?",
 *   position: 0,
 * });
 * ```
 */
export declare function expressionToSql(expression: ExpressionNode): string;
export {};
//# sourceMappingURL=compile.d.ts.map