import type { LintError } from '../lint.types.js'; /** * @purpose Validates anchor pairing and nesting in TypeScript source per DbC contract. * @invariant Stack-based: START_X pushes; END_X finds matching START_X in stack and reports nesting for any unclosed blocks above the match. * @invariant Bare #region/#endregion without START_/END_ → ERR_CLI_LINT_ANCHOR_MALFORMED. Bare #endregion auto-closes with stack top. * @invariant Pure function — no I/O, no exceptions. Errors returned in ascending line order. * @param content Source text to validate. * @param filePath File path for error messages. * @returns List of lint errors in line order, empty when anchors are correctly paired and nested. */ export declare function check(content: string, filePath: string): LintError[];