import { ReducedValue, StateSchema } from "@langchain/langgraph"; export interface ResolvedStateField { readonly name: string; readonly reducer: "append" | "replace" | ((current: unknown, incoming: unknown) => unknown); readonly default: unknown; } export declare function materializeStateSchema(fields: readonly ResolvedStateField[]): import("@langchain/langgraph").AnnotationRoot; /** * The `createAgent` form of {@link materializeStateSchema}: `createAgent` * accepts a `StateSchema` (or a zod object) but not an `Annotation.Root`, and * it declares `messages` itself, so only the route's own fields appear here. * Each field keeps its reducer through a `ReducedValue`; the value schema is * `z.any()` because a route's state is typed by the route, not validated at * the graph boundary, and its `.default()` seeds the field's declared default. */ export declare function materializeAgentStateSchema(fields: readonly ResolvedStateField[]): StateSchema>>; //# sourceMappingURL=state-adapter.d.ts.map