export type PolicyRequest = { command: string; args: string[]; cwd: string; env: NodeJS.ProcessEnv; input: string; timeoutMs: number; maxOutputBytes: number; }; export type PolicyOutcome = { exitCode: number | null; stdout: string; stderr: string; timedOut: boolean; /** True when stdout or stderr exceeded `maxOutputBytes` and the child was killed. */ overflowed: boolean; }; export type PolicySpawner = (request: PolicyRequest) => Promise; export declare function missingNodeError(node: string): Error; /** * The child's whole environment. Blackboard credentials and NODE_OPTIONS are never passed; GitHub * tokens are passed only when the server has them, for the checks that call `gh`. */ export declare function policyEnvironment(env: NodeJS.ProcessEnv): NodeJS.ProcessEnv; export declare const spawnPolicy: PolicySpawner;