import type { RunResult } from "../run.js"; type SignalName = "SIGUSR1"; type SignalProcess = Pick; type CliStream = { write(chunk: string): void; }; type WriteDumpFile = (filepath: string, content: string, options: { encoding: "utf8"; flag: "wx"; }) => Promise; export declare function attachSignalDumpHandler(result: PromiseLike, options?: { dumpPath?: string; dumpResult?: (result: PromiseLike) => Promise; onError?: (error: unknown, signal: SignalName) => Promise | void; onSnapshot?: (snapshot: string, signal: SignalName) => Promise | void; process?: SignalProcess; stderr?: CliStream; writeFile?: WriteDumpFile; }): () => void; export {};