import type { Dialect } from "../dialect.js"; export interface StatementCellSpan { /** doc offset, inclusive — cell text includes leading trivia. */ start: number; /** doc offset, exclusive — includes the trailing separator (`;` / GO line). */ end: number; } /** * Split `text` into top-level statement cells using `tokenize(text, dialect)`. * Total: never throws. Splits at channel-0 `;` at compound depth 0 (BEGIN/CASE * increment, END decrements, floor 0; a T-SQL `BEGIN TRAN`/`TRANSACTION`/ * `DISTRIBUTED` does not open a depth level) plus, for T-SQL, a `GO` batch * separator alone on its line. Returns the whole doc as one cell when * splitting is unsafe (the tiling invariant fails) or pointless (no separators). */ export declare function splitStatements(text: string, dialect: Dialect): StatementCellSpan[];