import type { SessionIndex } from '../../session/manager.js'; import type { GatewayPrincipal } from '../security/gateway-principal.js'; export type SessionHandoffErrorCode = 'NOT_FOUND' | 'BAD_REQUEST' | 'EMPTY_SESSION' | 'FORBIDDEN' | 'SESSION_BUSY' | 'PRIVACY_CONFIRMATION_REQUIRED'; export declare class SessionHandoffError extends Error { readonly code: SessionHandoffErrorCode; readonly status: 400 | 403 | 404 | 409; constructor(code: SessionHandoffErrorCode, message: string, status: 400 | 403 | 404 | 409); } export interface PerformSessionHandoffInput { sessionIndex: SessionIndex; sourceConversationId: string; targetAgentId: string; confirmRestrictedContext?: boolean; throughTurnId?: string; principal?: GatewayPrincipal; getActiveWebchatRunId: (conversationId: string) => string | undefined; } export declare function performSessionHandoff(input: PerformSessionHandoffInput): Promise<{ conversationId: string; sourceConversationId: string; sourceAgentId: string; targetAgentId: string; selectedCount: number; omittedCount: number; }>;