export interface OpenClawCommandResult { exitCode: number; stdout: string; stderr: string; } export interface OpenClawCommandRunner { (args: readonly string[], options?: { stdin?: string; signal?: AbortSignal; }): Promise; } export type OpenClawPreflightResult = { status: 'profile_not_found'; } | { status: 'prerequisite_failed'; reason: 'binary' | 'version' | 'config' | 'model_auth'; } | { status: 'ready'; version: string; gateway: 'reachable' | 'unreachable' | 'unknown'; }; export interface OpenClawCliAdapter { preflight(options?: { signal?: AbortSignal; }): Promise; inspect(input: { agentId: string; accountId: string; gatewayUrl: string; }, options?: { signal?: AbortSignal; }): Promise; ensureChannel(options?: { signal?: AbortSignal; }): Promise<{ changed: boolean; }>; ensureAgent(input: { agentId: string; workspaceRef: string; }, options?: { signal?: AbortSignal; }): Promise<{ changed: boolean; }>; ensureAccountSecretRef(input: { accountId: string; secretRef: import('./types.js').OpenClawSecretRef; }, options?: { signal?: AbortSignal; }): Promise<{ changed: boolean; }>; ensureAccountGatewayUrl(input: { accountId: string; gatewayUrl: string; }, options?: { signal?: AbortSignal; }): Promise<{ changed: boolean; }>; ensureBinding(input: { agentId: string; accountId: string; }, options?: { signal?: AbortSignal; }): Promise<{ changed: boolean; }>; gatewayStatus(options?: { signal?: AbortSignal; }): Promise<'reachable' | 'unreachable' | 'unknown'>; restartGateway(options?: { signal?: AbortSignal; }): Promise<'restarted' | 'service_not_installed'>; } export declare function createOpenClawCliAdapter(options: { profile: string; run: OpenClawCommandRunner; }): OpenClawCliAdapter; //# sourceMappingURL=cli-adapter.d.ts.map