'use client'; import { ParseResult } from "@pgsql/types"; //#region src/sql/normalized-fingerprint.d.ts /** * A function that fingerprints a SQL string. Injected so this module stays * free of a fingerprint runtime dependency, mirroring how `Analyzer` accepts * an injected parser. In practice this is `fingerprint` from * `@libpg-query/parser`. */ type FingerprintFn = (query: string) => Promise; /** * Fingerprint a query while normalizing every SELECT target list in the tree * so that the presence and order of bare column references don't affect the * result. Applies to the top-level SELECT as well as SELECTs nested in CTEs, * subqueries, and set-operation arms. A change to the set of * aggregates/expressions, the WHERE, the FROM, etc. still moves it. * * Takes the already-parsed AST and an injected {@link FingerprintFn} so core * needs no parser or fingerprint runtime. The AST is cloned before mutation. */ declare function normalizedFingerprint(ast: ParseResult, fingerprint: FingerprintFn): Promise; //#endregion export { FingerprintFn, normalizedFingerprint }; //# sourceMappingURL=normalized-fingerprint.d.mts.map