import type { Ref } from "vue"; import type { AggregateProgress, FileUploadState, FilesClient, FilesClientConfig } from "../client/index.js"; import { FilesError } from "../internal/errors.js"; export interface UseFilesOptions extends FilesClientConfig { /** External signal merged into every call this composable makes. */ signal?: AbortSignal; } export interface UseFilesReturn extends FilesClient { /** `true` while any `upload()` started here is in flight. */ isUploading: Ref; /** Per-file live state of the most recent upload. */ uploads: Ref; /** Aggregate progress across in-flight uploads. */ progress: Ref; /** The last error from any verb. */ error: Ref; /** Clear the ambient error + upload state (and re-arm after an `abort`). */ reset(): void; /** Abort every in-flight call started here. */ abort(reason?: unknown): void; } export declare const useFiles: (opts?: UseFilesOptions) => UseFilesReturn; //# sourceMappingURL=use-files.d.ts.map