1 | import { ExpoConfig } from '@expo/config';
|
2 | import { ProjectSettings } from './internal';
|
3 | interface URLOptions extends ProjectSettings.ProjectSettings {
|
4 | urlType: null | 'exp' | 'http' | 'no-protocol' | 'redirect' | 'custom';
|
5 | }
|
6 | interface MetroQueryOptions {
|
7 | dev?: boolean;
|
8 | strict?: boolean;
|
9 | minify?: boolean;
|
10 | }
|
11 | export declare function constructBundleUrlAsync(projectRoot: string, opts: Partial<URLOptions>, requestHostname?: string): Promise<string>;
|
12 | export declare function constructDeepLinkAsync(projectRoot: string, opts?: Partial<URLOptions>, requestHostname?: string): Promise<string>;
|
13 | export declare function constructManifestUrlAsync(projectRoot: string, opts?: Partial<URLOptions>, requestHostname?: string): Promise<string>;
|
14 | export declare function constructDevClientUrlAsync(projectRoot: string, opts?: Partial<URLOptions>, requestHostname?: string): Promise<string>;
|
15 | export declare function constructHostUriAsync(projectRoot: string, requestHostname?: string): Promise<string>;
|
16 | export declare function constructLogUrlAsync(projectRoot: string, requestHostname?: string): Promise<string>;
|
17 | export declare function constructLoadingUrlAsync(projectRoot: string, platform: 'ios' | 'android' | null, requestHostname?: string): Promise<string>;
|
18 | export declare function constructUrlWithExtensionAsync(projectRoot: string, entryPoint: string, ext: string, requestHostname?: string, metroQueryOptions?: MetroQueryOptions): Promise<string>;
|
19 | export declare function constructPublishUrlAsync(projectRoot: string, entryPoint: string, requestHostname?: string, metroQueryOptions?: MetroQueryOptions): Promise<string>;
|
20 | export declare function constructSourceMapUrlAsync(projectRoot: string, entryPoint: string, requestHostname?: string): Promise<string>;
|
21 | export declare function constructAssetsUrlAsync(projectRoot: string, entryPoint: string, requestHostname?: string): Promise<string>;
|
22 | export declare function constructDebuggerHostAsync(projectRoot: string, requestHostname?: string): Promise<string>;
|
23 | export declare function constructBundleQueryParams(projectRoot: string, opts: MetroQueryOptions): string;
|
24 | export declare function constructBundleQueryParamsWithConfig(projectRoot: string, opts: MetroQueryOptions, exp: Pick<ExpoConfig, 'sdkVersion'>): string;
|
25 | export declare function constructWebAppUrlAsync(projectRoot: string, options?: {
|
26 | hostType?: 'localhost' | 'lan' | 'tunnel';
|
27 | }): Promise<string | null>;
|
28 | export declare function constructUrlAsync(projectRoot: string, incomingOpts: Partial<URLOptions> | null, isPackager: boolean, requestHostname?: string): Promise<string>;
|
29 | export declare function stripJSExtension(entryPoint: string): string;
|
30 | export declare function isHttps(urlString: string): boolean;
|
31 | export declare function isURL(urlString: string, { protocols, requireProtocol }: {
|
32 | protocols?: string[];
|
33 | requireProtocol?: boolean;
|
34 | }): boolean;
|
35 | export {};
|