import { z } from "zod"; import type { NmtLanguage } from "./translation-config"; import { type NmtModelTypeInput, type LlmModelTypeInput } from "./model-types"; declare const translateParamsSchema: z.ZodUnion]>; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "nmtcpp-translation": "nmtcpp-translation"; nmt: "nmt"; }>; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodString; text: z.ZodString; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "llamacpp-completion": "llamacpp-completion"; llm: "llm"; }>; from: z.ZodOptional; to: z.ZodString; context: z.ZodOptional; }, z.core.$strip>]>; export declare const translationStatsSchema: z.ZodObject<{ totalTime: z.ZodOptional; totalTokens: z.ZodOptional; tokensPerSecond: z.ZodOptional; timeToFirstToken: z.ZodOptional; decodeTime: z.ZodOptional; encodeTime: z.ZodOptional; cacheTokens: z.ZodOptional; }, z.core.$strip>; export declare const translateRequestSchema: z.ZodUnion]>; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "nmtcpp-translation": "nmtcpp-translation"; nmt: "nmt"; }>; type: z.ZodLiteral<"translate">; requestId: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodString; text: z.ZodString; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "llamacpp-completion": "llamacpp-completion"; llm: "llm"; }>; from: z.ZodOptional; to: z.ZodString; context: z.ZodOptional; type: z.ZodLiteral<"translate">; requestId: z.ZodOptional; }, z.core.$strip>]>; export declare const translateServerParamsSchema: z.ZodPipe]>; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "nmtcpp-translation": "nmtcpp-translation"; nmt: "nmt"; }>; }, z.core.$strip>, z.ZodObject<{ modelId: z.ZodString; text: z.ZodString; stream: z.ZodBoolean; modelType: z.ZodEnum<{ "llamacpp-completion": "llamacpp-completion"; llm: "llm"; }>; from: z.ZodOptional; to: z.ZodString; context: z.ZodOptional; }, z.core.$strip>]>, z.ZodTransform<{ modelType: string; modelId: string; text: string | string[]; stream: boolean; } | { modelType: string; modelId: string; text: string; stream: boolean; to: string; from?: string | undefined; context?: string | undefined; }, { modelId: string; text: string | string[]; stream: boolean; modelType: "nmtcpp-translation" | "nmt"; } | { modelId: string; text: string; stream: boolean; modelType: "llamacpp-completion" | "llm"; to: string; from?: string | undefined; context?: string | undefined; }>>; export declare const translateResponseSchema: z.ZodObject<{ type: z.ZodLiteral<"translate">; token: z.ZodString; done: z.ZodOptional; stats: z.ZodOptional; totalTokens: z.ZodOptional; tokensPerSecond: z.ZodOptional; timeToFirstToken: z.ZodOptional; decodeTime: z.ZodOptional; encodeTime: z.ZodOptional; cacheTokens: z.ZodOptional; }, z.core.$strip>>; error: z.ZodOptional; }, z.core.$strip>; export type TranslateParams = z.infer; export type TranslateRequest = z.infer; export type TranslateResponse = z.infer; export type TranslationStats = z.infer; type TranslateParamsNmt = { modelId: string; text: string | string[]; stream: boolean; modelType: NmtModelTypeInput; }; type TranslateParamsLlm = { modelId: string; text: string; stream: boolean; modelType: LlmModelTypeInput; from?: NmtLanguage | (string & {}); to: NmtLanguage | (string & {}); context?: string; }; export type TranslateClientParams = TranslateParamsNmt | TranslateParamsLlm; export {}; //# sourceMappingURL=translate.d.ts.map