import { spawn } from 'child_process'; import { startProxy, type ProxyInstance } from './proxy.js'; import { getOrCreateCA } from './certs.js'; export interface WrapDeps { spawnFn?: typeof spawn; startProxyFn?: (ca: Awaited>, opts: Parameters[1]) => Promise; } export declare function resolveWrapSpawn(cmd: string, args: string[], platform?: NodeJS.Platform): { cmd: string; spawnArgs: string[]; windowsVerbatimArguments?: true; }; /** * Build the full ingest endpoint for a given client's base_url. * The CLI stores only the site base_url, so append the ingest path here. * Returns undefined for the default base_url (the proxy already uses the right endpoint). */ export declare function endpointForBaseUrl(baseUrl: string): string | undefined; /** * Run an arbitrary child command behind the Coolhand proxy with the stored API key * filled in. Starts an in-process HTTPS MITM proxy and spawns `cmd` with proxy env vars. */ export declare function runWrapped(cmd: string, args: string[], clientId: string | undefined, deps?: WrapDeps): Promise; //# sourceMappingURL=wrap-runner.d.ts.map