import type { CancelReasonCode, CommandListQuery } from "@claudexor/schema"; import type { RuntimeReplacementTarget } from "./daemon-shutdown-rpc.js"; /** Thin JSON-RPC client for the daemon over a Unix socket. */ export declare class DaemonClient { private readonly socketPath; private readonly token; constructor(socketPath: string, token: string); call(method: string, params?: unknown): Promise; health(): Promise; enqueue(request: unknown, options?: { idempotencyKey?: string; clientId?: string; idempotencyRequest?: unknown; operation?: string; }): Promise<{ id: string; state: string; reused: boolean; }>; status(id: string): Promise<{ id: string; state: string; params?: unknown; runId?: string; taskId?: string; runDir?: string; result?: unknown; error?: string; errorCode?: string; errorStatus?: number; errorRetryable?: boolean; errorRequiredActions?: string[]; errorContext?: Record; createdAt?: string; startedAt?: string; finishedAt?: string; }>; findAccepted(request: unknown, options: { idempotencyKey: string; clientId?: string; operation?: string; idempotencyRequest?: unknown; }): Promise<{ id: string; state: string; params?: unknown; runId?: string; taskId?: string; runDir?: string; result?: unknown; error?: string; errorCode?: string; errorStatus?: number; errorRetryable?: boolean; errorRequiredActions?: string[]; errorContext?: Record; createdAt?: string; startedAt?: string; finishedAt?: string; } | null>; /** Addressed read: `query` names one run id or one Delegate parent so the * daemon selects before it projects. Omit it for the whole retained product * list. An engine older than the query ignores it and answers with the full * list, so a caller must still apply its own selection to the result. */ list(query?: CommandListQuery): Promise<{ id: string; state: string; params?: unknown; runId?: string; taskId?: string; runDir?: string; error?: string; errorCode?: string; errorStatus?: number; errorRetryable?: boolean; errorRequiredActions?: string[]; errorContext?: Record; createdAt?: string; startedAt?: string; finishedAt?: string; }[]>; cancel(id: string, reasonCode?: CancelReasonCode): Promise; fenceDelegationParent(runId: string): Promise<{ runId: string; fenced: boolean; }>; shutdown(): Promise; shutdownForRuntimeReplacement(expectedTarget: RuntimeReplacementTarget): Promise<{ ok: true; fenced: true; targetBound: true; }>; } //# sourceMappingURL=client.d.ts.map