type QuoteChar = "'" | '"' | '`'; export declare function isQuoteChar(char: string | undefined): char is QuoteChar; export declare function findQuoteEnd(sql: string, start: number, quote: string): number; /** * Peel one layer of wrapping parentheses, but only when the leading `(` closes * at the very end — so `(a, b)` becomes `a, b` while `(a), (b)` is left intact. */ export declare function stripWrappingParens(input: string): string; /** * Index of the `)` that matches the `(` at `openIndex`, or undefined when the * parens are unbalanced. */ export declare function findMatchingParen(input: string, openIndex: number): number | undefined; /** Find a clause/delimiter outside quoted strings, identifiers and parentheses. */ export declare function findTopLevelSQLPattern(sql: string, pattern: RegExp): { index: number; length: number; } | undefined; export {}; //# sourceMappingURL=sql-scan.d.ts.map