import type { LintError } from '../lint.types.js'; /** * @purpose Adapts DbcTsLinter result into the lint pipeline — translates DbcLintError → LintError. * @implements {DbcContractCheck} in specs/cli/lint/lint.spec.md * @invariant When autofix=false, calls lint(); when autofix=true, calls lintAndFix() with disk mutation. * @param content Pre-read source text — avoids redundant fs.read. * @param filePath Path to the source file for error reporting. * @param autofix When true, auto-fixes are applied to the file on disk via DbcTsLinter. * @throws {Error} Wraps unexpected linter failure with cause-chain. * @returns Object with translated LintError[] and autoFixed count. * @sideEffect When autofix=true, mutates the source file on disk through DbcTsLinter. */ export declare function check(content: string, filePath: string, autofix: boolean): Promise<{ errors: LintError[]; autoFixed: number; }>;