import { type ChildProcessByStdio } from 'node:child_process'; import type { Readable } from 'node:stream'; type GhChild = ChildProcessByStdio; export type SpawnGh = (args: string[]) => GhChild; /** A log streamer whose `gh` child sees `tokenEnv`'s value as `GH_TOKEN`, like `createGhRunner`. */ export declare const createGhLogStreamer: (tokenEnv?: string) => (path: string) => AsyncGenerator, any, any>; /** * Streams one `gh api` response body in chunks so the caller never buffers a whole job log. If the * consumer stops early the child is killed. A non-zero exit throws with at most 4 KiB of stderr. */ export declare function streamGhApiLog(path: string, spawnChild?: SpawnGh): AsyncGenerator; export {};