import { type LogLimits } from './log-window.mts'; import type { RunFetchEnv } from './run-context-types.mts'; /** `[substring of the joined gh argv, reply]`; the first matching route wins. */ export type Route = [match: string, reply: string | Error]; /** Streamed log per `/jobs//logs` suffix: one string, several chunks, or a failure. */ export type LogReply = string | string[] | Error; export declare const jobsPage: (...jobs: Array>) => string; export declare const runReply: (overrides?: Record) => string; export declare function createFakeEnv(routes: Route[], logs?: Record, limits?: Partial): { api: import("./gh-api.mts").GhApi; calls: string[][]; env: RunFetchEnv; streamed: string[]; }; /** Installs a POSIX `gh` stub first on PATH. Returns the restore function. */ export declare function installFakeGh(script: string): () => void;