export function streamComplete(options: Options): import("../utils/stream.js").StreamResult; export default complete; export type ReactElement = import("react").ReactElement; export type ReactNode = import("react").ReactNode; export type Item = { type: string; data: object; }; export type BasicParametersSchema = Record; export type ValidatingParametersSchema = { schema: BasicParametersSchema; validate(value: any): Promise<{ valid: boolean; error?: Error; }>; }; export type InputMessage = { type: "bot" | "user" | "reasoning" | "context" | "instruction" | "backstory" | "checkpoint" | "activity"; text: string; meta?: Record; }; export type OutputMessage = { type: "bot" | "activity"; text: string; meta?: Record; }; export type Message = InputMessage | OutputMessage; export type RenderFunction = () => AsyncGenerator | ReactNode | Promise; export type HandlerArgs = any; export type HandlerOptions = { messages: InputMessage[]; functions?: InputFunction[]; controllers: { continuation: AbortController; }; signals: { abort: AbortSignal; }; }; export type HandlerResult = string | ReactElement | { text?: string; children?: ReactNode; render?: RenderFunction; result?: any; }; export type InputFunction = { name: string; description: string; parameters: BasicParametersSchema | ValidatingParametersSchema; handler?: (args: HandlerArgs, options: HandlerOptions) => Promise; }; export type OnItemHandler = (arg0: Item) => any; export type OnStartHandler = () => any; export type OnFinishHandler = (arg0: { messages: Message[]; }) => any; export type Options = Omit & { client: import("@chatbotkit/sdk").ConversationClient; backstory?: string; messages: InputMessage[]; functions?: (InputFunction | (() => InputFunction | Promise))[]; maxRecursion?: number; onItem?: OnItemHandler; onStart?: OnStartHandler; onFinish?: OnFinishHandler; }; declare function complete({ client, messages, functions, maxRecursion, ...options }: Options): any;