UNPKG

uploadthing

Version:

Learn more: [docs.uploadthing.com](https://docs.uploadthing.com)

31 lines (27 loc) 1.29 kB
import { FileRouter, RouteHandlerOptions, UTFiles, UTRegion, UnsetMarker, UploadBuilder } from "../dist/types-V6mH1dCh.cjs"; import { CreateBuilderOptions } from "../dist/upload-builder-Dplyfqsy.cjs"; import * as _uploadthing_shared57 from "@uploadthing/shared"; import { Json } from "@uploadthing/shared"; import * as h365 from "h3"; import { H3Event } from "h3"; //#region src/h3.d.ts type AdapterArgs = { event: H3Event; }; declare const createUploadthing: <TErrorShape extends Json>(opts?: CreateBuilderOptions<TErrorShape>) => <TRouteOptions extends _uploadthing_shared57.RouteOptions>(input: _uploadthing_shared57.FileRouterInputConfig, config?: TRouteOptions | undefined) => UploadBuilder<{ _routeOptions: TRouteOptions; _input: { in: UnsetMarker; out: UnsetMarker; }; _metadata: UnsetMarker; _adapterFnArgs: AdapterArgs; _errorShape: TErrorShape; _errorFn: UnsetMarker; _output: UnsetMarker; }>; declare const createRouteHandler: <TRouter extends FileRouter>(opts: RouteHandlerOptions<TRouter>) => h365.EventHandler<h365.EventHandlerRequest, Promise<Response>>; //#endregion //# sourceMappingURL=h3.d.ts.map export { FileRouter, UTFiles, createRouteHandler, createUploadthing, UTRegion as experimental_UTRegion }; //# sourceMappingURL=index.d.cts.map