import type { Dialect, ReportedSeverity, Severity } from './types'; /** A per-rule override: a severity, a boolean toggle, or an object form. */ export type RuleSetting = Severity | boolean | { severity?: Severity; enabled?: boolean; }; /** The shape users write in their config file. All fields optional. */ export interface UserConfig { /** Directory holding Prisma migrations. Default: `./prisma/migrations`. */ migrationsDir?: string; /** SQL dialect of the migrations. Default: `postgresql`. */ dialect?: Dialect; /** Lowest severity that should fail the run. Default: `error`. */ failOn?: ReportedSeverity; /** Per-rule overrides, keyed by rule name. */ rules?: Record; } export interface ResolvedConfig { migrationsDir: string; dialect: Dialect; failOn: ReportedSeverity; /** Effective severity for every rule (`off` means disabled). */ ruleSeverity: Map; /** Path of the config file that was loaded, if any. */ filepath?: string; } /** * Load and validate configuration, layering an optional config file and * explicit overrides on top of the built-in defaults. */ export declare function loadConfig(options?: { configPath?: string; overrides?: Partial; cwd?: string; }): ResolvedConfig; export declare class ConfigError extends Error { constructor(message: string); } //# sourceMappingURL=config.d.ts.map