import type { Command } from 'commander'; import { AgentRelay, type AgentRelayAgent } from '@agent-relay/sdk'; import { type SdkClientOptions } from './sdk-client.js'; type ExitFn = (code: number) => never; /** Shared dependencies for the SDK-backed (Relaycast) command groups. */ export interface SdkCommandDeps { createAgentRelay: (options?: SdkClientOptions) => AgentRelayAgent; createWorkspaceRelay: (options?: SdkClientOptions) => AgentRelayAgent; createWorkspace: (name: string, baseUrl?: string) => Promise; log: (...args: unknown[]) => void; error: (...args: unknown[]) => void; exit: ExitFn; } export declare function withSdkDefaults(overrides?: Partial): SdkCommandDeps; /** Add the common workspace/token/base-url options to a command. */ export declare function addSdkOptions(command: Command): Command; export declare function sdkOptionsFromOpts(opts: Record): SdkClientOptions; export declare function printJson(deps: SdkCommandDeps, value: unknown): void; /** Run an SDK command body, formatting errors consistently and exiting non-zero. */ export declare function runSdk(deps: SdkCommandDeps, fn: () => Promise): Promise; export {}; //# sourceMappingURL=sdk-command.d.ts.map