import { ClientUploadedFileData, CreateUploadOptions, EndpointArg, FileRouter, GenerateUploaderOptions, RouteRegistry, UploadFilesOptions, inferEndpointOutput } from "../dist/types-Bs3w2d_3.js"; import { ExpandedRouteConfig, UploadAbortedError, UploadPausedError, allowedContentTextLabelGenerator, bytesToFileSize, generateClientDropzoneAccept, generateMimeTypes, generatePermittedFileTypes } from "@uploadthing/shared"; //#region src/client.d.ts declare const version: string; /** * Validate that a file is of a valid type given a route config * @public */ declare const isValidFileType: (file: File, routeConfig: ExpandedRouteConfig) => boolean; /** * Validate that a file is of a valid size given a route config * @public */ declare const isValidFileSize: (file: File, routeConfig: ExpandedRouteConfig) => boolean; /** * Generate a typed uploader for a given FileRouter * @public */ declare const genUploader: (initOpts?: GenerateUploaderOptions) => { uploadFiles: (slug: EndpointArg, opts: Omit, keyof GenerateUploaderOptions>) => Promise>[]>; createUpload: >(slug: EndpointArg, opts: Omit, keyof GenerateUploaderOptions>) => Promise<{ pauseUpload: (file?: File) => void; resumeUpload: (file?: File) => void; done: (file?: T) => Promise : ClientUploadedFileData[]>; }>; /** * Identity object that can be used instead of raw strings * that allows "Go to definition" in your IDE to bring you * to the backend definition of a route. */ routeRegistry: RouteRegistry; }; //#endregion export { UploadAbortedError, UploadPausedError, allowedContentTextLabelGenerator, bytesToFileSize, genUploader, generateClientDropzoneAccept, generateMimeTypes, generatePermittedFileTypes, isValidFileSize, isValidFileType, version }; //# sourceMappingURL=index.d.ts.map