GT2/Ejectable/node_modules/@expo/metro-config/build/ExpoMetroConfig.d.ts

19 lines
729 B
TypeScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
import { ProjectTarget } from '@expo/config';
import { Reporter } from 'metro';
import type MetroConfig from 'metro-config';
export declare const EXPO_DEBUG: boolean;
export declare const INTERNAL_CALLSITES_REGEX: RegExp;
export interface DefaultConfigOptions {
target?: ProjectTarget;
}
export declare function getDefaultConfig(projectRoot: string, options?: DefaultConfigOptions): MetroConfig.InputConfigT;
export interface LoadOptions {
config?: string;
maxWorkers?: number;
port?: number;
reporter?: Reporter;
resetCache?: boolean;
target?: ProjectTarget;
}
export declare function loadAsync(projectRoot: string, { reporter, target, ...metroOptions }?: LoadOptions): Promise<MetroConfig.ConfigT>;