UNPKG

1.37 kBTypeScriptView Raw
1import { ExpoAppManifest, ExpoConfig } from '@expo/config';
2import { BundleAssetWithFileHashes, BundleOutput } from '@expo/dev-server';
3declare type ManifestAsset = {
4 fileHashes: string[];
5 files: string[];
6 hash: string;
7};
8export declare type Asset = ManifestAsset | BundleAssetWithFileHashes;
9declare type BundlesByPlatform = {
10 android?: BundleOutput;
11 ios?: BundleOutput;
12};
13declare type ExportAssetsOptions = {
14 projectRoot: string;
15 exp: ExpoAppManifest;
16 hostedUrl: string;
17 assetPath: string;
18 bundles: BundlesByPlatform;
19 outputDir?: string;
20 experimentalBundle?: boolean;
21};
22export declare function resolveGoogleServicesFile(projectRoot: string, manifest: ExpoConfig): Promise<void>;
23export declare function resolveManifestAssets({ projectRoot, manifest, resolver, strict, }: {
24 projectRoot: string;
25 manifest: ExpoConfig;
26 resolver: (assetPath: string) => Promise<string>;
27 strict?: boolean;
28}): Promise<void>;
29export declare function publishAssetsAsync(options: Pick<ExportAssetsOptions, 'projectRoot' | 'exp' | 'bundles'>): Promise<{
30 exp: ExpoAppManifest;
31 assets: Asset[];
32}>;
33export declare function exportAssetsAsync({ projectRoot, exp, hostedUrl, assetPath, outputDir, bundles, experimentalBundle, }: ExportAssetsOptions): Promise<{
34 exp: ExpoAppManifest;
35 assets: Asset[];
36}>;
37export {};