import { CrtrClient, type CrtrClientOptions } from './client.js'; /** Resolve crtrd's default unix socket path the same way `apiSocketPath()` does, * via Node built-ins only (no `core/canvas/paths.ts` import). */ export declare function defaultSocketPath(): string; /** A standard `fetch` bound to one unix socket, built on `node:http` with * `{ socketPath }`. The returned `Response`'s body is a live `ReadableStream` * fed as bytes arrive — never buffered before the caller sees headers — * which is what lets `CrtrClient` serve a streaming route (SSE) later without * a second transport. Connection failures are wrapped as `TypeError('fetch * failed', { cause })`, matching the shape native `fetch` throws, so * `CrtrClient`'s cold-socket/interrupted-request classification (`err.cause.code`) * reads identically off either transport. */ export declare function socketFetch(socketPath: string): typeof fetch; /** Construct a client bound to the default local socket with autostart on. * Without `onColdSocket`, a cold socket fails with `daemon_unavailable`. */ export declare function localClient(opts?: Omit & { socketPath?: string; }): CrtrClient;