import type { Config } from '../config/schema.js'; import { DurableState } from '../storage/sqlite/durable-state.js'; import { type McpConnectionCallback } from './callback-config.js'; export type CallbackConfig = Config['gateway']['mcpCallback']; export type ResolvedCallbackTarget = CallbackConfig | McpConnectionCallback; type Subscription = { principalId: string; url: string; perConnection?: boolean; sequence: number; attempts: number; nextAttemptAt: number; }; export declare const mcpRunCallbackSubscriptions: DurableState; export declare function subscribeToMcpRunCallback(runId: string, principalId: string, config: ResolvedCallbackTarget, options?: { perConnection?: boolean; }): boolean; export {};