export { type d as AudioChannelMixOptions, type c as AudioResampleOptions, type e as AudioTransformOptions, type b as AudioTransformResult, type f as AudioTransformationStep, type A as AudioTransformerConfig, B as BaseTransformer, type C as CropOptions, type h as ImageFormat, type I as ImageTransformerConfig, type U as MediaTransformQuery, type a as MediaTransformResult, type W as MediaTransformationStep, type M as MediaTransformerConfig, type R as ResizeOptions, type g as RotateOptions, type i as TransformOptions, type T as TransformResult, type z as TransformationStep, type K as VideoCropOptions, type H as VideoResizeOptions, type N as VideoRotateOptions, type O as VideoTransformOptions, type F as VideoTransformResult, type Q as VideoTransformationStep, type V as VideoTransformerConfig } from "../packem_shared/types.d-D1TIRqKW.js"; export { M as MediaTransformer } from "../packem_shared/media-transformer.d-Co37isNg.js"; import { g as FileReturn } from "../packem_shared/storage.d-C9EdfTf1.js"; import 'node:stream'; import 'node:timers'; import 'node:crypto'; import 'node:http'; import 'lru-cache'; /** * Check if a content type is valid for a specific media type. * @param contentType MIME content type string to validate * @param expectedType Expected media type ('image', 'video', or 'audio') * @returns True if the content type is valid for the expected media type */ declare const isValidMediaType: (contentType: string | undefined, expectedType: "image" | "video" | "audio") => boolean; /** * Get format (extension) from content type using mime package. * @param contentType MIME content type string to extract format from * @returns Format string or undefined if not found */ declare const getFormatFromContentType: (contentType: string | undefined) => string | undefined; /** * Validate a media file for a specific type with size and format checks. * @param file File to validate * @param expectedType Expected media type ('image', 'video', or 'audio') * @param config Validation configuration with optional maxSize and supportedFormats * @param config.maxSize Maximum allowed file size in bytes * @param config.supportedFormats Array of supported file formats * @throws Error if validation fails (size exceeded, wrong type, or unsupported format) */ declare const validateMediaFile: (file: FileReturn, expectedType: "image" | "video" | "audio", config?: { maxSize?: number; supportedFormats?: string[]; }) => void; /** * Validate that a content type is known and supported by the mime package. * @param contentType MIME content type string to check * @returns True if the content type is known and has a registered extension */ declare const isKnownContentType: (contentType: string | undefined) => boolean; /** * Custom error class for validation failures */ declare class ValidationError extends Error { readonly code: string; readonly details: { invalidParams: string[]; mediaType: string; suggestions?: string[]; validParams: string[]; }; /** * Creates a new ValidationError instance with detailed error information. * @param message Human-readable error message describing the validation failure * @param code Machine-readable error code for programmatic error handling * @param mediaType The media type where validation failed ('image', 'video', or 'audio') * @param invalidParameters Array of parameter names that were invalid * @param validParameters Array of valid parameter names or values * @param suggestions Optional array of suggested corrections or valid values */ constructor(message: string, code: string, mediaType: string, invalidParameters: string[], validParameters: string[], suggestions?: string[]); } export { ValidationError, getFormatFromContentType, isKnownContentType, isValidMediaType, validateMediaFile };