import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export declare const One: { readonly TextPlain: "text/plain"; readonly AudioMpeg: "audio/mpeg"; readonly VideoMp4: "video/mp4"; readonly ImageWebp: "image/webp"; readonly ImageHeic: "image/heic"; readonly ImageBmp: "image/bmp"; readonly ImagePng: "image/png"; readonly ImageJpeg: "image/jpeg"; readonly ImageTiff: "image/tiff"; }; export type One = ClosedEnum; /** * The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the document's type. */ export type QueryParamMediaType = One | string; export type GetDocumentContentRequest = { /** * The id of the document. */ documentId: string; /** * The desired media type of the content to return described as a mime type. An error will be returned if the requested media type is not supported for the document's type. */ mediaType?: One | string | null | undefined; /** * Whether to return the content as a file download or a raw stream. If set to `true`, the content will be returned as a named file for download. */ download?: boolean | undefined; /** * An optional partition to scope the request to. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition, while older accounts will have the request scoped to all partitions. Older accounts may opt in to strict partition scoping by contacting support@ragie.ai. Older accounts using the partitions feature are strongly recommended to scope the request to a partition. */ partition?: string | null | undefined; range?: string | null | undefined; }; /** @internal */ export declare const One$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const One$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const QueryParamMediaType$inboundSchema: z.ZodType; /** @internal */ export type QueryParamMediaType$Outbound = string | string; /** @internal */ export declare const QueryParamMediaType$outboundSchema: z.ZodType; export declare function queryParamMediaTypeToJSON(queryParamMediaType: QueryParamMediaType): string; export declare function queryParamMediaTypeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetDocumentContentRequest$inboundSchema: z.ZodType; /** @internal */ export type GetDocumentContentRequest$Outbound = { document_id: string; media_type?: string | string | null | undefined; download: boolean; partition?: string | null | undefined; range?: string | null | undefined; }; /** @internal */ export declare const GetDocumentContentRequest$outboundSchema: z.ZodType; export declare function getDocumentContentRequestToJSON(getDocumentContentRequest: GetDocumentContentRequest): string; export declare function getDocumentContentRequestFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=getdocumentcontent.d.ts.map