import type { SecretValue } from '../secret-value.js'; import type { OpenClawPreflightResult } from './cli-adapter.js'; export interface OpenClawLocalResources { channel: boolean; agent: boolean; account: boolean; accountGateway: boolean; binding: boolean; } export interface OpenClawSecretRef { provider: string; source: 'file'; id: string; providerPath: string; } export interface OpenClawSecretStore { persist(input: { resourceHash: string; secret: SecretValue; tokenPreview: string; }): Promise; matchesPreview(resourceHash: string, tokenPreview: string): Promise; ensureOwnership(input: { resourceHash: string; localResourceExists: boolean; }): Promise; isRestartRequired(resourceHash: string): Promise; markRestartRequired(resourceHash: string): Promise; clearRestartRequired(resourceHash: string): Promise; } export interface OpenClawConnectionMetadata { gatewayUrl: string; tokenPreview: string; } export interface OpenClawCliPort { 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: 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 type OpenClawProvisionResult = { status: 'profile_not_found'; } | { status: 'prerequisite_failed'; reason: 'binary' | 'version' | 'config' | 'model_auth' | 'gateway_service'; } | { status: 'gateway_restart_confirmation_required'; resource_ref: string; impact: 'profile_all_agents'; } | { status: 'local_configured' | 'connected_unverified' | 'runtime_online'; resource_ref: string; }; //# sourceMappingURL=types.d.ts.map