27 lines
1.6 KiB
TypeScript
27 lines
1.6 KiB
TypeScript
import type { NodePath, types as t } from '@babel/core';
|
|
export declare function hasModule(name: string): boolean;
|
|
/** Determine which bundler is being used. */
|
|
export declare function getBundler(caller?: any): "metro" | "webpack" | null;
|
|
export declare function getPlatform(caller?: any): string | null | undefined;
|
|
export declare function getPossibleProjectRoot(caller?: any): string | null | undefined;
|
|
/** If bundling for a react-server target. */
|
|
export declare function getIsReactServer(caller?: any): boolean;
|
|
export declare function getIsDev(caller?: any): boolean;
|
|
export declare function getIsFastRefreshEnabled(caller?: any): boolean;
|
|
export declare function getIsProd(caller?: any): boolean;
|
|
export declare function getIsNodeModule(caller?: any): boolean;
|
|
export declare function getBaseUrl(caller?: any): string;
|
|
export declare function getReactCompiler(caller?: any): boolean;
|
|
export declare function getIsServer(caller?: any): boolean;
|
|
export declare function getIsLoaderBundle(caller?: any): boolean;
|
|
export declare function getMetroSourceType(caller?: any): "script" | "module" | "asset" | undefined;
|
|
export declare function getBabelRuntimeVersion(caller?: any): string;
|
|
export declare function getExpoRouterAbsoluteAppRoot(caller?: any): string;
|
|
export declare function getInlineEnvVarsEnabled(caller?: any): boolean;
|
|
export declare function getAsyncRoutes(caller?: any): boolean;
|
|
export declare function createAddNamedImportOnce(t: typeof import('@babel/core').types): (path: NodePath<t.Node>, name: string, source: string) => any;
|
|
/**
|
|
* Convert any platform-specific path to a POSIX path.
|
|
*/
|
|
export declare function toPosixPath(filePath: string): string;
|