type ChildProcess = typeof import('node:child_process'); export interface LocalFixRequest { title: string; description: string; } export interface LocalFixOutcome { status: 'READY_FOR_REVIEW' | 'FAILED'; /** The local branch holding the committed fix, when one passed. */ branch?: string; reason?: string; } /** Starts one fix and reports each progress line; resolves when it ends. Tests inject their own. */ export type LocalFixRunner = (request: LocalFixRequest, onProgress: (event: string) => void) => Promise; /** * The CLI in a child process. `npx --no-install` finds the app's own blazeresolver, so the engine is the version the app * installed. Arguments are passed as an array, never through a shell, since the description is the customer's text. */ export declare const cliLocalFix: (cwd?: string, env?: NodeJS.ProcessEnv) => LocalFixRunner; /** * The file a customer's words point to, found by plain text search: the code-structure search the engine starts from * finds functions and symbols, not a misspelled label or message in markup. Takes the report's rarest word (camelCase * split too, since "BlazeReslover" may be written as Blaze + Reslover) found in 1 to 3 source files; tests and docs * don't count. Undefined when no word is that distinctive. */ export declare function suspectFile(cp: Pick, cwd: string, text: string): string | undefined; /** * The app server's environment minus what belongs to the server itself. A dev server runs with NODE_ENV=development, * which the engine hands to the project's build, and `next build` under it fails prerendering ("reading 'useContext'"); * the rest (NODE_OPTIONS, NEXT_*, TURBOPACK) is the server's own runtime, not the project's. */ export declare function engineEnv(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv; export declare function enqueueLocalFix(run: LocalFixRunner, request: LocalFixRequest, onProgress: (event: string) => void): Promise; export {}; //# sourceMappingURL=local-fix.d.ts.map