/** * Project-level configuration loader. * Reads .bugproofrc (JSON) from the project root or any parent directory. */ export interface BugProofConfig { /** Glob patterns to exclude from artifact file capture */ exclude: string[]; /** Default artifact output directory (relative to cwd) */ outputDir: string; /** Default timeout in ms */ timeout: number; /** Whether to skip secret scanning */ skipSecrets: boolean; /** Whether to include untracked files */ includeUntracked: boolean; /** Watch mode: auto-capture only on failure (vs always capture) */ watchOnlyOnFailure: boolean; /** Maximum artifact size in MB */ maxArtifactSizeMB: number; /** Custom name template for artifacts (supports {timestamp}, {command}, {exit_code}) */ nameTemplate: string; } /** * Searches for .bugproofrc from the given directory upwards. * Returns the merged config (file values override defaults). */ export declare function loadConfig(startDir?: string): BugProofConfig; /** * Finds the nearest .bugproofrc file by walking up from startDir. */ export declare function findConfigFile(startDir: string): string | null; /** * Generates a default .bugproofrc content for `bugproof init`. */ export declare function generateDefaultConfig(): string; /** * Applies a name template to generate an artifact filename. */ export declare function applyNameTemplate(template: string, vars: { timestamp: number; command: string; exit_code: number; }): string; //# sourceMappingURL=loader.d.ts.map