import { z } from "zod"; import type { Doc, EmbeddedDoc, SaveEmbeddingsResult, SearchResult, ReindexResult, IngestResult, IngestStage, ReindexStage, SaveStage } from "@qvac/rag"; export declare const ragIngestParamsSchema: z.ZodObject<{ workspace: z.ZodOptional; modelId: z.ZodString; documents: z.ZodUnion]>; chunk: z.ZodDefault; chunkOpts: z.ZodOptional; chunkOverlap: z.ZodOptional; chunkStrategy: z.ZodOptional>; splitStrategy: z.ZodOptional>; }, z.core.$strip>>; progressInterval: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; }, z.core.$strip>; export declare const ragChunkParamsSchema: z.ZodObject<{ documents: z.ZodUnion]>; chunkOpts: z.ZodOptional; chunkOverlap: z.ZodOptional; chunkStrategy: z.ZodOptional>; splitStrategy: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$strip>; export declare const ragSaveEmbeddingsParamsSchema: z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; documents: z.ZodArray; embeddingModelId: z.ZodString; metadata: z.ZodOptional>; }, z.core.$strip>>; progressInterval: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; }, z.core.$strip>; export declare const ragReindexParamsSchema: z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; }, z.core.$strip>; export declare const ragSearchParamsSchema: z.ZodObject<{ workspace: z.ZodOptional; modelId: z.ZodString; query: z.ZodString; topK: z.ZodDefault; n: z.ZodDefault; }, z.core.$strip>; export declare const ragDeleteEmbeddingsParamsSchema: z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; ids: z.ZodArray; }, z.core.$strip>; export declare const ragCloseWorkspaceParamsSchema: z.ZodObject<{ workspace: z.ZodOptional; deleteOnClose: z.ZodOptional; }, z.core.$strip>; export declare const ragDeleteWorkspaceParamsSchema: z.ZodObject<{ workspace: z.ZodPipe; }, z.core.$strip>; export declare const ragRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ documents: z.ZodUnion]>; chunkOpts: z.ZodOptional; chunkOverlap: z.ZodOptional; chunkStrategy: z.ZodOptional>; splitStrategy: z.ZodOptional>; }, z.core.$strip>>; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"chunk">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ workspace: z.ZodOptional; modelId: z.ZodString; documents: z.ZodUnion]>; chunk: z.ZodDefault; chunkOpts: z.ZodOptional; chunkOverlap: z.ZodOptional; chunkStrategy: z.ZodOptional>; splitStrategy: z.ZodOptional>; }, z.core.$strip>>; progressInterval: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"ingest">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; documents: z.ZodArray; embeddingModelId: z.ZodString; metadata: z.ZodOptional>; }, z.core.$strip>>; progressInterval: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"saveEmbeddings">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ workspace: z.ZodOptional; modelId: z.ZodString; query: z.ZodString; topK: z.ZodDefault; n: z.ZodDefault; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"search">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; ids: z.ZodArray; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"deleteEmbeddings">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodOptional; workspace: z.ZodOptional; onProgress: z.ZodOptional; withProgress: z.ZodOptional; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"reindex">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"listWorkspaces">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ workspace: z.ZodOptional; deleteOnClose: z.ZodOptional; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"closeWorkspace">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ workspace: z.ZodPipe; type: z.ZodLiteral<"rag">; operation: z.ZodLiteral<"deleteWorkspace">; requestId: z.ZodOptional; }, z.core.$strip>], "operation">; declare const ragWorkspaceInfoSchema: z.ZodObject<{ name: z.ZodString; open: z.ZodBoolean; }, z.core.$strip>; export declare const ragResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"chunk">; chunks: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"ingest">; processed: z.ZodArray; id: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; droppedIndices: z.ZodArray; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"saveEmbeddings">; processed: z.ZodArray; id: z.ZodOptional; error: z.ZodOptional; }, z.core.$strip>>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"search">; results: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"deleteEmbeddings">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"reindex">; result: z.ZodObject<{ reindexed: z.ZodBoolean; details: z.ZodOptional>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"listWorkspaces">; workspaces: z.ZodArray>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"closeWorkspace">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"rag">; success: z.ZodBoolean; error: z.ZodOptional; operation: z.ZodLiteral<"deleteWorkspace">; }, z.core.$strip>], "operation">; export declare const ragProgressUpdateSchema: z.ZodObject<{ type: z.ZodLiteral<"rag:progress">; operation: z.ZodEnum<{ ingest: "ingest"; saveEmbeddings: "saveEmbeddings"; reindex: "reindex"; }>; workspace: z.ZodString; stage: z.ZodString; current: z.ZodNumber; total: z.ZodNumber; timestamp: z.ZodNumber; }, z.core.$strip>; export type RagRequest = z.infer; export type RagResponse = z.infer; export type RagProgressUpdate = z.infer; export type RagChunkParams = z.infer; export type RagIngestParams = z.input & { onProgress?: (stage: IngestStage, current: number, total: number) => void; }; export type RagSaveEmbeddingsParams = z.infer & { onProgress?: (stage: SaveStage, current: number, total: number) => void; }; export type RagSearchParams = z.input; export type RagDeleteEmbeddingsParams = z.infer; export type RagReindexParams = z.input & { onProgress?: (stage: ReindexStage, current: number, total: number) => void; }; export type RagCloseWorkspaceParams = z.infer; export type RagDeleteWorkspaceParams = z.infer; export type RagWorkspaceInfo = z.infer; export type { Doc as RagDoc, EmbeddedDoc as RagEmbeddedDoc, SaveEmbeddingsResult as RagSaveEmbeddingsResult, SearchResult as RagSearchResult, ReindexResult as RagReindexResult, IngestStage as RagIngestStage, ReindexStage as RagReindexStage, SaveStage as RagSaveStage, IngestResult as RagIngestResult, }; //# sourceMappingURL=rag.d.ts.map