export interface CancellationInput extends NodeJS.ReadableStream { readonly isTTY?: boolean | undefined; readonly isRaw?: boolean | undefined; setRawMode?(mode: boolean): unknown; } export interface CancellationProcess { on(event: "SIGINT" | "SIGTERM", listener: () => void): unknown; off(event: "SIGINT" | "SIGTERM", listener: () => void): unknown; } export interface NoninteractiveCancellationOptions { readonly input: CancellationInput; readonly proc?: CancellationProcess | undefined; readonly abort: () => void; } export declare function installNoninteractiveCancellation(options: NoninteractiveCancellationOptions): () => void;