import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; /** * 源格式类型 */ export declare const From: { readonly Plain: "plain"; readonly Base64: "base64"; readonly Hex: "hex"; readonly Url: "url"; readonly Html: "html"; readonly Unicode: "unicode"; readonly Binary: "binary"; readonly Md5: "md5"; readonly Sha1: "sha1"; readonly Sha256: "sha256"; readonly Sha512: "sha512"; }; /** * 源格式类型 */ export type From = ClosedEnum; export declare const From$zodSchema: z.ZodEnum<{ url: "url"; base64: "base64"; html: "html"; hex: "hex"; md5: "md5"; plain: "plain"; unicode: "unicode"; binary: "binary"; sha1: "sha1"; sha256: "sha256"; sha512: "sha512"; }>; /** * 目标格式类型 */ export declare const To: { readonly Plain: "plain"; readonly Base64: "base64"; readonly Hex: "hex"; readonly Url: "url"; readonly Html: "html"; readonly Unicode: "unicode"; readonly Binary: "binary"; readonly Md5: "md5"; readonly Sha1: "sha1"; readonly Sha256: "sha256"; readonly Sha512: "sha512"; }; /** * 目标格式类型 */ export type To = ClosedEnum; export declare const To$zodSchema: z.ZodEnum<{ url: "url"; base64: "base64"; html: "html"; hex: "hex"; md5: "md5"; plain: "plain"; unicode: "unicode"; binary: "binary"; sha1: "sha1"; sha256: "sha256"; sha512: "sha512"; }>; /** * 包含转换配置的JSON对象 */ export type PostTextConvertRequest = { text: string; from: From; to: To; options?: { [k: string]: any; } | undefined; }; export declare const PostTextConvertRequest$zodSchema: z.ZodType; /** * 转换失败或参数错误 */ export type PostTextConvertBadRequestResponseBody = { error_code?: string | undefined; error_message?: string | undefined; error_details?: string | undefined; }; export declare const PostTextConvertBadRequestResponseBody$zodSchema: z.ZodType; /** * 转换成功 */ export type PostTextConvertResponseBody = { result?: string | undefined; from?: string | undefined; to?: string | undefined; length?: number | undefined; info?: string | undefined; }; export declare const PostTextConvertResponseBody$zodSchema: z.ZodType; export type PostTextConvertResponse = PostTextConvertResponseBody | PostTextConvertBadRequestResponseBody; export declare const PostTextConvertResponse$zodSchema: z.ZodType; //# sourceMappingURL=posttextconvertop.d.ts.map