import { type A2APersistedMutationReceipt, type Task } from "@agent-native/core/a2a"; import { type DispatchMcpAppAccessSettings } from "./mcp-access-store.js"; export interface DispatchMcpAccessibleApp { id: string; name: string; description: string; url: string; /** Canonical browser entry point when `url` is a deep A2A/agent link. */ homeUrl?: string; color: string; granted: boolean; } type DispatchMutationReceipt = A2APersistedMutationReceipt; type DispatchAskAppStatusErrorCategory = "transport" | "timeout" | "upstream_5xx" | "rate_limited"; type DispatchAskAppTaskResult = { app: string; routedVia: "a2a"; taskId: string; status: string; response?: string; receipts?: DispatchMutationReceipt[]; error?: string; inputRequired?: string; statusRead?: "unavailable"; retryable?: true; errorCategory?: DispatchAskAppStatusErrorCategory; attempts?: number; pollAfterMs?: number; poll?: { tool: "ask_app_status"; arguments: { app: string; taskId: string; }; }; message?: string; }; declare function dispatchAskAppTaskResult(app: string, task: Task, identity: { userEmail: string; orgId: string | null; orgSecret: string | null; }): DispatchAskAppTaskResult; export declare function listDispatchMcpApps(): Promise<{ settings: DispatchMcpAppAccessSettings; apps: DispatchMcpAccessibleApp[]; }>; export declare function listGrantedDispatchMcpApps(): Promise; export declare function listGrantedDispatchMcpAppOrigins(): Promise; export declare function resolveGrantedDispatchMcpApp(app: string): Promise; export declare function askGrantedDispatchMcpApp(app: string, message: string, options?: { async?: boolean; maxWaitMs?: number; }): Promise>; export declare function getGrantedDispatchMcpAppTask(app: string, taskId: string): Promise; export declare function openGrantedDispatchMcpApp(input: { app: string; view?: string; path?: string; params?: Record; embed?: boolean; chrome?: "full" | "minimal"; }): Promise<{ app: string; view?: string; path?: string; url: string; embed?: boolean; chrome?: "full" | "minimal"; embedStartUrl?: string; embedTargetPath?: string; embedExpiresAt?: number; }>; export declare function createGrantedDispatchMcpEmbedSession(input: { app?: string; url?: string; path?: string; chrome?: "full" | "minimal"; }): Promise<{ startUrl: string; targetPath?: string; expiresAt?: number; app: string; }>; export declare function createWorkspaceSsoEmbedSession(input: { app?: string; url?: string; path?: string; chrome?: "full" | "minimal"; }): Promise<{ startUrl: string; targetPath?: string; expiresAt?: number; app: string; }>; export {}; //# sourceMappingURL=mcp-gateway.d.ts.map