import { Workflow as Workflow$1, WorkflowContext } from "@llama-flow/core"; //#region src/middleware/state.d.ts type WithState = Input extends void | undefined ? { (workflow: Workflow): Omit & { createContext(): ReturnType & { get state(): State; }; }; } : { (workflow: Workflow): Omit & { createContext(input: Input): ReturnType & { get state(): State; }; }; }; type CreateState = { getContext(): Context & { get state(): State; }; withState: WithState; }; declare function createStatefulMiddleware(init: (input: Input) => State): CreateState; //#endregion export { createStatefulMiddleware }; //# sourceMappingURL=state.d.cts.map