export declare function is_valid_mimetype(file_accept: string | string[] | null, uploaded_file_name: string, uploaded_file_type: string): boolean; export declare function to_accept_attribute(file_accept: string | string[] | null): string | undefined; interface DragActionOptions { disable_click?: boolean; ignore_click_selector?: string; accepted_types?: string | string[] | null; mode?: "single" | "multiple" | "directory"; on_drag_change?: (dragging: boolean) => void; on_files?: (files: File[]) => void; } type ActionReturn = { update: (new_options: DragActionOptions) => void; destroy: () => void; }; export declare function create_drag(): { drag: (node: HTMLElement, options: DragActionOptions) => ActionReturn; open_file_upload: () => void; }; export {};