import type { ClientApi } from "../client/index.js"; /** * A hook that allows you to upload a file to R2. * * This hook can be used as is, or copied into your own code for customization * and tighter control. * * @param api - The client API object from the R2 component, including at least * `generateUploadUrl` and `syncMetadata`. * @returns A function that uploads a file to R2. */ export declare function useUploadFile(api: Pick): (file: File, options?: { onProgress?: (progress: { loaded: number; total: number; }) => void; }) => Promise; //# sourceMappingURL=index.d.ts.map