declare interface FileDialogOptions { readonly multiple?: boolean; readonly accept?: string|ReadonlyArray; } declare function fileDialog(): Promise; declare function fileDialog( callback: ( files: FileList ) => void ): Promise; declare function fileDialog( options: FileDialogOptions, callback?: ( files: FileList ) => void ): Promise; export = fileDialog; export as namespace fileDialog;