type PrimitiveRow = Record | unknown[]; /** * Describes the minimal piece of a QueryResult needed for count-wrapper normalization. */ export interface CountableResult { command?: string | null; rowCount?: number | null; fields?: { name: string; }[] | null; rows: Row[]; } /** * Extracts the numeric value from a SELECT COUNT(*) row emitted by the rewriter. */ export declare const extractCountValue: (result: T) => number | null; /** * Rewrites a count-wrapper response back into the originating CRUD command shape. */ export declare const applyCountWrapper: (result: T, sourceCommand: string | null, isCountWrapper: boolean) => T; /** * Reindexes `$N` placeholders so newly injected bindings remain contiguous. */ export declare const alignRewrittenParameters: (sql: string, params?: unknown[]) => { sql: string; params?: unknown[]; }; export {};