import { FileKeyEncoded, FileKeyParts } from "./keys.js"; import { StorageAdapter } from "./storage/types.js"; //#region src/config.d.ts type FileHookPayload = { fileKey: FileKeyEncoded; fileKeyParts: FileKeyParts; uploadId?: string; uploaderId?: string | null; sizeBytes: number; contentType: string; }; type UploadTimeoutPayload = { uploadId: string; fileKey: FileKeyEncoded; fileKeyParts: FileKeyParts; }; interface UploadFragmentConfig { storage: StorageAdapter; storageKeyPrefix?: string; directUploadThresholdBytes?: number; multipartThresholdBytes?: number; multipartPartSizeBytes?: number; uploadExpiresInSeconds?: number; signedUrlExpiresInSeconds?: number; maxSingleUploadBytes?: number; maxMultipartUploadBytes?: number; onFileReady?: (payload: FileHookPayload, idempotencyKey: string) => Promise; onUploadFailed?: (payload: FileHookPayload, idempotencyKey: string) => Promise; onFileDeleted?: (payload: FileHookPayload, idempotencyKey: string) => Promise; } type UploadFragmentResolvedConfig = Omit & { storageKeyPrefix: string; signedUrlExpiresInSeconds: number; }; declare const resolveUploadFragmentConfig: (config: UploadFragmentConfig) => UploadFragmentResolvedConfig; //# sourceMappingURL=config.d.ts.map //#endregion export { FileHookPayload, UploadFragmentConfig, UploadFragmentResolvedConfig, UploadTimeoutPayload, resolveUploadFragmentConfig }; //# sourceMappingURL=config.d.ts.map