import type { CreateOpts, SandboxHandle, SandboxSubstrate, SandboxSummary } from '../../src/index.js'; export interface FakeSandboxHandleOpts { sandboxId?: string; /** /tmp/slicc-join.json contents to return from readFile. */ joinJson?: string; /** stdout for handle.run() (the kick curl); default '200'. */ runStdout?: string; /** exit code for handle.run(); default 0. */ runExitCode?: number; /** stderr for handle.run(); default ''. */ runStderr?: string; /** Optional: throw on kill (e.g., not-found discrimination tests). */ killError?: Error; /** Captures all writeFile calls. */ writes?: Array<{ path: string; contents: string | Uint8Array; }>; } export declare function makeFakeHandle(opts?: FakeSandboxHandleOpts): SandboxHandle; export interface FakeSubstrateOpts { /** Handle returned by connect(). Defaults to a vanilla fake handle. */ handle?: SandboxHandle; /** If set, connect() throws this. Useful for not-found tests. */ connectError?: Error; /** Override create(); default returns the same handle. */ onCreate?: (opts: CreateOpts) => Promise; /** Captures all create() calls. */ creates?: CreateOpts[]; /** List result to return; default []. */ listResult?: SandboxSummary[]; /** Captures all extendTimeout calls. */ timeoutCalls?: Array<{ sandboxId: string; ttlMs: number; }>; } export declare function makeFakeSubstrate(opts?: FakeSubstrateOpts): SandboxSubstrate; //# sourceMappingURL=fake-substrate.d.ts.map