import { type ResolvedConfig, type UserConfig } from './config'; import type { LintResult, Migration, ReportedSeverity } from './types'; /** Run all active rules against a set of already-loaded migrations. */ export declare function lint(migrations: Migration[], config: ResolvedConfig): LintResult; export interface LintProjectOptions { /** Path to an explicit config file. */ configPath?: string; /** Inline overrides (e.g. from CLI flags), applied over the config file. */ overrides?: Partial; /** Working directory. Defaults to `process.cwd()`. */ cwd?: string; /** Only lint these migration files (absolute or cwd-relative paths). */ files?: string[]; /** Only lint migrations changed since this git ref (PR-style three-dot diff). */ changedSince?: string; } /** * Load configuration and migrations from disk and lint them. The main entry * point for both the CLI and programmatic use. */ export declare function lintProject(options?: LintProjectOptions): { result: LintResult; config: ResolvedConfig; }; /** Whether the result should fail the run, given the configured `failOn` level. */ export declare function shouldFail(result: LintResult, failOn: ReportedSeverity): boolean; //# sourceMappingURL=lint.d.ts.map