import type { AdminUser } from "adminforth"; import { z } from "zod"; import type { AgentEventEmitter } from "../domain/agentEvents.js"; import type { SequenceDebugCollector } from "./middleware/sequenceDebug.js"; import type { CurrentPageContext } from "../tools/getUserLocation.js"; import type { AgentTurnContext } from "../domain/turnTypes.js"; import type { DetectedLanguage } from "../domain/languageDetect.js"; export declare const contextSchema: z.ZodObject<{ adminUser: z.ZodCustom; userTimeZone: z.ZodString; sessionId: z.ZodString; turnId: z.ZodString; abortSignal: z.ZodOptional>; currentPage: z.ZodOptional>; chatSurface: z.ZodOptional; adminBaseUrl: z.ZodOptional; adminPublicOrigin: z.ZodOptional; userLanguage: z.ZodOptional>; emit: z.ZodOptional>; sequenceDebugSink: z.ZodCustom; }, z.core.$strip>; export type AgentContext = z.infer; export declare function toLangchainAgentContext(context: AgentTurnContext & { adminBaseUrl: string; emit?: AgentEventEmitter; sequenceDebugSink: SequenceDebugCollector; }): AgentTurnContext & { adminBaseUrl: string; emit?: AgentEventEmitter; sequenceDebugSink: SequenceDebugCollector; };