Files
Fluxup_PAP/node_modules/expo-asset/build/Asset.server.d.ts
2026-03-10 16:18:05 +00:00

25 lines
878 B
TypeScript

import type { AssetDescriptor } from './Asset';
import type { AssetMetadata } from './AssetSources';
export declare class Asset {
private static byHash;
private static byUri;
name: string;
readonly type: string;
readonly hash: string | null;
readonly uri: string;
localUri: string | null;
width: number | null;
height: number | null;
downloaded: boolean;
constructor({ name, type, hash, uri, width, height }: AssetDescriptor);
static loadAsync(moduleId: number | number[] | string | string[]): Promise<Asset[]>;
static fromModule(virtualAssetModule: number | string | {
uri: string;
width: number;
height: number;
}): Asset;
static fromMetadata(meta: AssetMetadata): Asset;
static fromURI(uri: string): Asset;
downloadAsync(): Promise<this>;
}
//# sourceMappingURL=Asset.server.d.ts.map