UNPKG

@nodefinity/react-native-music-library

Version:

Access local music files in React Native with full metadata support.

16 lines 874 B
import { type AssetsOptions, type InternalAssetsOptions, type InternalSortByValue, type SortByValue } from './NativeMusicLibrary'; export declare function arrayize<T>(item: T | T[]): T[]; export declare function checkSortBy(sortBy: unknown): asserts sortBy is SortByValue; export declare function checkSortByKey(sortBy: any): void; export declare function sortByOptionToString(sortBy: SortByValue | undefined): InternalSortByValue; export declare function getId(ref: string | undefined | { id?: string; }): string | undefined; /** * Parse sortBy to SortByValue[] * @param sortBy - SortByValue or SortByValue[] * @returns SortByValue[] */ export declare function normalizeSortBy(input: SortByValue | SortByValue[] | undefined): SortByValue[]; export declare function getOptions(assetsOptions: AssetsOptions): InternalAssetsOptions; //# sourceMappingURL=utils.d.ts.map