1{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"","sourcesContent":["// @needsAudit\nexport type DocumentPickerOptions = {\n  /**\n   * The [MIME type(s)](https://en.wikipedia.org/wiki/Media_type) of the documents that are available\n   * to be picked. It also supports wildcards like `'image/*'` to choose any image. To allow any type\n   * of document you can use `'*/*'`.\n   * @default '*/*'\n   */\n  type?: string | string[];\n  /**\n   * If `true`, the picked file is copied to [`FileSystem.CacheDirectory`](./filesystem#filesystemcachedirectory),\n   * which allows other Expo APIs to read the file immediately. This may impact performance for\n   * large files, so you should consider setting this to `false` if you expect users to pick\n   * particularly large files and your app does not need immediate read access.\n   * @default true\n   */\n  copyToCacheDirectory?: boolean;\n  /**\n   * Allows multiple files to be selected from the system UI.\n   * @default false\n   *\n   */\n  multiple?: boolean;\n};\n\nexport type DocumentPickerAsset = {\n  /**\n   * Document original name.\n   */\n  name: string;\n  /**\n   * Document size in bytes.\n   */\n  size?: number;\n  /**\n   * An URI to the local document file.\n   */\n  uri: string;\n  /**\n   * Document MIME type.\n   */\n  mimeType?: string;\n  /**\n   * Timestamp of last document modification.\n   */\n  lastModified?: number;\n  /**\n   * `File` object for the parity with web File API.\n   * @platform web\n   */\n  file?: File;\n};\n\n// @needsAudit @docsMissing\nexport type DocumentPickerResult = {\n  /**\n   * Boolean flag which shows if request was canceled. If asset data have been returned this should\n   * always be `false`.\n   */\n  canceled: boolean;\n  /**\n   * An array of picked assets or `null` when the request was canceled.\n   */\n  assets: DocumentPickerAsset[] | null;\n  /**\n   * `FileList` object for the parity with web File API.\n   * @platform web\n   */\n  output?: FileList | null;\n} & (DocumentPickerSuccessResult | DocumentPickerCanceledResult);\n\n/**\n * @hidden\n */\nexport type DocumentPickerSuccessResult = {\n  canceled: false;\n  assets: DocumentPickerAsset[];\n};\n\n/**\n * @hidden\n */\nexport type DocumentPickerCanceledResult = {\n  canceled: true;\n  assets: null;\n};\n"]}