import type * as _babel_types from "@babel/types"; import type { BabelFileMetadata } from "@babel/core"; export interface CustomTransformOptions { [$$Key$$: string]: any; } export declare const enum _TransformProfile { _default = "default", hermesStable = "hermes-stable", hermesCanary = "hermes-canary", } export type TransformProfile = `${_TransformProfile}`; export interface BabelTransformerOptions { readonly customTransformOptions?: CustomTransformOptions; readonly dev: boolean; readonly enableBabelRCLookup?: boolean; readonly enableBabelRuntime?: boolean | string; readonly extendsBabelConfigPath?: string; readonly experimentalImportSupport?: boolean; readonly hermesParser?: boolean; readonly minify: boolean; readonly platform?: null | string; readonly projectRoot: string; readonly publicPath: string; readonly unstable_transformProfile?: TransformProfile; readonly globalPrefix: string; readonly inlineRequires?: void; } export interface BabelTransformerArgs { readonly filename: string; readonly options: BabelTransformerOptions; readonly plugins?: any; readonly src: string; } export interface BabelFileFunctionMapMetadata { readonly names: ReadonlyArray; readonly mappings: string; } export type BabelFileImportLocsMetadata = ReadonlySet; export interface _MetroBabelFileMetadata_metro { functionMap?: null | undefined | BabelFileFunctionMapMetadata; unstable_importDeclarationLocs?: null | undefined | BabelFileImportLocsMetadata; } export interface MetroBabelFileMetadata extends BabelFileMetadata { metro?: null | undefined | _MetroBabelFileMetadata_metro; } export interface BabelTransformer { readonly transform: ($$PARAM_0$$: BabelTransformerArgs) => { readonly ast: _babel_types.File; readonly functionMap?: BabelFileFunctionMapMetadata; readonly metadata?: MetroBabelFileMetadata; }; readonly getCacheKey?: () => string; } declare function transform($$PARAM_0$$: BabelTransformerArgs): ReturnType; export { transform };