export interface TerminalState { readonly stdinIsTTY: boolean; readonly stdoutIsTTY: boolean; } /** Mirrors `resolveAppMode`: rpc, json and print modes, including print selected by piped input or output. */ export declare function isHeadlessInvocation(args: readonly string[], terminal: TerminalState): boolean; /** * Heap flags a headless run on Node should be relaunched with, or none. Interactive sessions size their engine * child instead, and a process that was already relaunched or started with an explicit heap size keeps its own. */ export declare function headlessHeapRelaunchArgs(args: readonly string[]): string[]; /** Runs this CLI again with the heap flags, passing through stdio, termination signals and the exit status. */ export declare function relaunchWithHeap(heapArgs: readonly string[], args: readonly string[]): void; //# sourceMappingURL=heap-relaunch.d.ts.map