import type { OpenGeniBrowserClient } from "@opengeni/sdk/browser"; import type { CapabilityCatalogItem, ConnectionMetadata, SkillUninstallPreview } from "../../types.js"; import type { ConnectAction } from "./capability-detail-sheet.js"; type PerformCapabilityActionOptions = Parameters[0]; /** * One connection lifecycle for catalog sheets and conversation cards, with * the consent-gated connect journey around every credential or OAuth action. */ export declare function performCapabilityAction(options: PerformCapabilityActionOptions, action: ConnectAction): Promise; /** One connection lifecycle for catalog sheets and conversation cards. The caller * resolves the live item and owns busy/error state; credentials never enter chat. */ declare function performCapabilityActionUntracked({ client, workspaceId, item, registry, connections, canManageSkills, refresh, onRuntimeChanged, onComplete, onSkillRemoval, returnPathFor, connectReturnUrl, redirect, }: { client: OpenGeniBrowserClient; workspaceId: string; item: CapabilityCatalogItem; registry?: boolean | undefined; connections: ConnectionMetadata[] | null; canManageSkills: boolean; refresh: () => Promise; onRuntimeChanged: () => void; onComplete: () => void | Promise; onSkillRemoval: (value: { item: CapabilityCatalogItem; preview: SkillUninstallPreview; }) => void; returnPathFor: (id: string) => string; /** Exact-return Connect surfaces; conversation cards retain their native * callback parameters for completing session tool selection. */ connectReturnUrl?: string | undefined; redirect: (url: string) => void; }, action: ConnectAction): Promise; export {};