import { type Static, type TSchema } from "@sinclair/typebox"; import { type CreateWorkletClientOptions, type WorkletClient } from "./types.js"; /** An HTTP error returned by the owning Happy daemon for an otherwise valid worklet request. */ export declare class WorkletApiError extends Error { readonly status: number; constructor(status: number, message: string); } /** * Creates a worklet API client. * * Normal worklets should use the exported `worklet` singleton. Supplying a socket path and token * is useful for tests and custom harnesses. */ export declare function createWorkletClient(options?: CreateWorkletClientOptions): WorkletClient; export declare function requestJson(options: { body?: unknown; method: "DELETE" | "GET" | "POST"; path: string; responseSchema: TSchema_; socketPath: string; token: string; }): Promise>; //# sourceMappingURL=createWorkletClient.d.ts.map