import type { DocumentPickerOptions as RNDocumentPickerOptions, DocumentPickerResponse, } from '@react-native-documents/picker/lib/typescript'; export type { types as documentTypes } from '@react-native-documents/picker'; export type DocumentPickerOptions = Omit & { /** * Allows multiple files to be selected from the system UI. * @default false */ multiple?: boolean; /** * runs when the DocumentPicker is cancelled * currently, only supported on IOS and Android */ onCancel?: () => void; /** * runs when the DocumentPicker is errored */ onError?: (e: any) => void; }; export type DocumentResult = Partial & { mimeType?: string; file?: File; lastModified?: number; };