import type { DeepPartial, InferSchema, LocalLLMErrorCode, LLMPrompt, ModelAvailability, Schema, SessionConfig, ActiveToolCall } from "./ExpoLocalLlm.types"; import { LLMSession } from "./LLMSession"; type UseLocalLLMOptions = Omit & { schema?: Definition; }; type UseLocalLLMResult = { availability: ModelAvailability; session: LLMSession | null; isGenerating: boolean; streamedText: string; streamedJSON: string; /** The structured response so far, in JSON mode. Fields appear as the model produces them. */ streamedObject: DeepPartial> | null; /** * The finished structured response, in JSON mode, after it has been * validated against the schema. Null while generating and after a cancel. */ completedObject: InferSchema | null; downloadProgress: number | null; error: string | null; /** The code of `error`, or null when there is no error or it came from your own code. */ errorCode: LocalLLMErrorCode | null; activeToolCalls: ActiveToolCall[]; respond?: (prompt: LLMPrompt) => Promise; streamResponse?: (prompt: LLMPrompt) => Promise; cancelStream?: () => Promise; reset?: () => void; downloadModel?: () => Promise; }; export declare function useLocalLLM(options?: UseLocalLLMOptions): UseLocalLLMResult; export {}; //# sourceMappingURL=useLocalLLM.d.ts.map