import type { PluginItem } from '@babel/core'; /** * Resolves a dependency of the project's `@react-native/babel-preset`, * e.g. a Babel plugin the preset ships with. */ export declare function resolveFromReactNativePreset(projectRoot: string, request: string): string; /** * `babel-plugin-transform-flow-enums` from the project's React Native preset, * or nothing when the preset isn't installed. * * Has to run ahead of the preset: the preset's `flow-strip-types` removes enum * declarations before the preset's own enum plugin gets to them. */ export declare const getFlowEnumsPlugins: (projectRoot: string) => PluginItem[]; /** * Picks the React runtime that Flow `component` declarations are lowered for, * based on the project's `react` version: React 19 passes `ref` as a prop, * React 18 needs `forwardRef`. Defaults to React 19. */ export declare const resolveReactRuntimeTarget: (projectRoot: string) => "18" | "19"; export declare function resolveReactNativeParser(projectRoot: string): { parserPath: string; babelPluginPath: string; };