import type { Files } from "../../index.js"; import type { ResultModel } from "../router-core/web.js"; import type { Scope } from "./authorize.js"; import type { ClientFileInfo } from "./protocol.js"; export interface UploadConfig { files: Files; secret: string; defaultExpiresIn: number; maxUploadSize?: number; proxyUrl: (token: string) => string; now: () => number; } export declare const handlePresign: (cfg: UploadConfig, files: ClientFileInfo[], requestedExpiresIn: number | undefined, scope: Scope, unscope: (key: string) => string) => Promise; export declare const handleComplete: (cfg: UploadConfig, completions: { id: string; key: string; }[], unscope: (key: string) => string) => Promise; export declare const handleProxyUpload: (cfg: UploadConfig, token: string | null, body: ReadableStream | null, contentLength: number | undefined) => Promise; export declare const handleExplicitUpload: (cfg: UploadConfig, storageKey: string, unscopedKey: string, body: ReadableStream | null, contentType: string | null, contentLength: number | undefined) => Promise; //# sourceMappingURL=upload.d.ts.map