import { type HappyComputeError, type HappyComputeErrorCode, type HappyComputeInstanceState } from "./computeTypes.js"; import type { CreateHappyPluginClientOptions, HappyPluginClient } from "./types.js"; /** An HTTP error returned by the owning Happy daemon for an otherwise valid SDK request. */ export declare class HappyPluginApiError extends Error { readonly code: HappyComputeErrorCode | (string & {}) | undefined; readonly elapsedMs: number | undefined; readonly lastProgressAt: number | undefined; readonly percent: number | undefined; readonly phase: string | undefined; readonly retryable: boolean; readonly startedAt: number | undefined; readonly state: HappyComputeInstanceState | undefined; readonly status: number; constructor(status: number, message: string, code?: HappyComputeErrorCode | (string & {}), retryable?: boolean, state?: HappyComputeInstanceState, preparation?: Extract); } /** * Creates a Happy plugin API client. * * Normal plugins should use the exported `happy` singleton. Supplying a socket path and token is * useful for tests and custom harnesses. */ export declare function createHappyPluginClient(options?: CreateHappyPluginClientOptions): HappyPluginClient; //# sourceMappingURL=createHappyPluginClient.d.ts.map