import type { DatabaseResult } from '../../types/index.js'; export type QueryableCollectionDb = { query: (query: string, values?: unknown[]) => Promise; }; export declare function validateSlug(slug: string): void; export declare function validateColumnName(column: string): void; export declare function escapeIdentifier(identifier: string): string; export declare function collectionTable(configSlug: string): string; export declare function selectByIdQuery(configSlug: string): string; export declare function deleteByIdQuery(configSlug: string): string; export declare function countDocumentsQuery(configSlug: string, whereClause?: string): string; export declare function listDocumentsQuery(configSlug: string, whereClause: string, orderByClause: string, limitParam: number, offsetParam: number): string; export declare function insertDocumentQuery(configSlug: string, columns: string[]): string; export declare function selectJsonByIdQuery(configSlug: string): string; export declare function checkExistsByIdQuery(configSlug: string): string; export declare function updateByIdQuery(configSlug: string, keys: string[]): string; /** * Version-aware UPDATE: includes `version = version + 1` in SET * and `AND version = $N` in WHERE for optimistic locking. * Returns the number of affected rows (0 = conflict). */ export declare function updateByIdWithVersionQuery(configSlug: string, keys: string[]): string; //# sourceMappingURL=sqlAdapter.d.ts.map