import type { FileEdit } from './types.js'; /** The lines a patch adds, without the leading +. Context and removed lines are not the fix's doing. */ export declare function addedLines(patch: string): string; /** * Names of the secrets found in `text`: known credential formats, and any exact value of `secretValues` * (the server's own keys and token, so a fix can't smuggle them out through the PR). Never returns the values. */ export declare function findSecrets(text: string, secretValues?: string[]): string[]; /** The values of every secret-looking environment variable, split on commas so an `API_KEYS` list is covered key by key. */ export declare function secretValuesFromEnv(env?: Record, extra?: string[]): string[]; /** * Why a fix's edits are refused, or undefined when they are fine. Three shortcuts an AI (or a crafted customer report * steering it) could take that a passing test run would never reveal: * - changing dependencies, scripts or other install-time fields in package.json, which is how code gets smuggled in; * - deleting assertions from an existing test, so a failing test passes because it checks less; * - creating a new package.json. * `read` returns a file's current content or null. */ export declare function guardEdits(edits: FileEdit[], read: (path: string) => Promise): Promise; //# sourceMappingURL=guards.d.ts.map