import { PermissionResponse } from 'expo-modules-core'; import ExpoMediaLibraryNext from './ExpoMediaLibraryNext'; import { GranularPermission } from './types/GranularPermission'; export * from './MediaLibraryNext.types'; export declare class Query extends ExpoMediaLibraryNext.Query { } export declare class Asset extends ExpoMediaLibraryNext.Asset { static create(filePath: string, album?: Album): Promise; static delete(assets: Asset[]): Promise; } export declare class Album extends ExpoMediaLibraryNext.Album { static create(name: string, assetsRefs: string[] | Asset[], moveAssets?: boolean): Promise; static delete(albums: Album[], deleteAssets?: boolean): Promise; static get(title: string): Promise; } /** * Asks the user to grant permissions for accessing media in user's media library. * @param writeOnly * @param granularPermissions - A list of [`GranularPermission`](#granularpermission) values. This parameter has an * effect only on Android 13 and newer. By default, `expo-media-library` will ask for all possible permissions. * * > When using granular permissions with a custom config plugin configuration, make sure that all the requested permissions are included in the plugin. * @return A promise that fulfils with [`PermissionResponse`](#permissionresponse) object. */ export declare function requestPermissionsAsync(writeOnly?: boolean, granularPermissions?: GranularPermission[]): Promise; //# sourceMappingURL=index.d.ts.map