export type HydratedBridgeRuntimeConfig = { baseUrl: string | null; appBaseUrlMapJson: string | null; serviceId: string | null; appKey: string | null; serviceKey: string | null; serviceKeySecretRef: string | null; botIdentity?: string | null; }; export type ResolvedBridgeRuntimeConfig = { baseUrl: string; serviceId: string; appKey: string; serviceKey: string; }; export type BridgeExecutionResult = { success: boolean; status: number; functionKey: string; result?: unknown; error?: string; }; type ExecuteBridgeFunctionArgs = { config: ResolvedBridgeRuntimeConfig; functionKey: string; args: Record; userToken?: string | null; auditHeaders?: Record; fetchImpl?: typeof fetch; retry?: { maxAttempts?: number; baseDelayMs?: number; }; }; type MaybeExecuteBridgeToolCallArgs = { toolName: string; toolArgs: Record; hydratedConfig: HydratedBridgeRuntimeConfig | null; userToken?: string | null; fetchImpl?: typeof fetch; retry?: { maxAttempts?: number; baseDelayMs?: number; }; env?: Record; }; type MaybeExecuteBridgeToolCallResult = { handled: false; } | { handled: true; functionKey: string; response: BridgeExecutionResult; }; export declare function resolveBridgeRuntimeConfig(hydratedConfig: HydratedBridgeRuntimeConfig | null | undefined, env?: Record): { ok: true; config: ResolvedBridgeRuntimeConfig; } | { ok: false; error: string; }; export declare function isBridgeToolName(toolName: string): boolean; export declare function bridgeFunctionKeyFromToolName(toolName: string): string | null; export declare function executeBridgeFunction(input: ExecuteBridgeFunctionArgs): Promise; export declare function maybeExecuteBridgeToolCall(input: MaybeExecuteBridgeToolCallArgs): Promise; export {}; //# sourceMappingURL=bridge.d.ts.map