import type { FileData } from "@gradio/client"; import { type Client } from "@gradio/client"; type $$ComponentProps = { filetype?: string | string[] | null; dragging?: boolean; boundedheight?: boolean; center?: boolean; flex?: boolean; file_count?: "single" | "multiple" | "directory"; disable_click?: boolean; root: string; hidden?: boolean; format?: "blob" | "file"; uploading?: boolean; show_progress?: boolean; max_file_size?: number | null; upload: Client["upload"]; stream_handler: Client["stream"]; icon_upload?: boolean; height?: number | string | undefined; aria_label?: string | undefined; tab_index?: number; container_element?: "button" | "div"; upload_promise?: Promise<(FileData | null)[]> | null; onload?: (data: any) => void; onerror?: (error: string) => void; children?: import("svelte").Snippet; }; declare const Upload: import("svelte").Component<$$ComponentProps, { open_upload: () => void; paste_clipboard: () => void; open_file_upload: () => void; load_files: (files: File[] | Blob[], upload_id?: string) => Promise<(FileData | null)[] | void>; load_files_from_drop: (e: DragEvent) => Promise; }, "uploading" | "dragging" | "upload_promise">; type Upload = ReturnType; export default Upload;