/** * APIClaw Capability Router * Routes capability requests to the best available provider */ interface CapabilityPreferences { region?: string; maxPrice?: number; preferredProvider?: string; fallback?: boolean; } interface CapabilityResult { success: boolean; capability: string; action: string; providerUsed?: string; fallbackAttempted: boolean; fallbackReason?: string; data?: unknown; error?: string; code?: string; outcomeUnknown?: boolean; retryable?: boolean; idempotencyKey?: string; requestId?: string; cost?: number; currency?: string; latencyMs?: number; } type CapabilityProviderResult = { success: boolean; data?: unknown; error?: string; code?: string; outcomeUnknown?: boolean; retryable?: boolean; idempotencyKey?: string; requestId?: string; }; /** * Execute a capability request with automatic provider selection and fallback */ export declare function executeCapability(capabilityId: string, action: string, params: Record, userId: string, preferences?: CapabilityPreferences, executeCall?: (provider: string, action: string, params: Record) => Promise): Promise; /** * List available capabilities */ export declare function listCapabilities(): Promise<{ id: string; name: string; category: string; }[]>; /** * Check if a capability exists */ export declare function hasCapability(capabilityId: string): Promise; export {}; //# sourceMappingURL=capability-router.d.ts.map