import { type Plugin } from 'vite'; /** * Supporting theĀ ["react-native" community condition](https://nodejs.org/docs/latest-v19.x/api/packages.html#community-conditions-definitions) in dependencies' `package.json`. * * See: * * https://reactnative.dev/blog/2023/06/21/0.72-metro-package-exports-symlinks#package-exports-support-beta * * https://v5.vite.dev/config/shared-options.html#resolve-conditions */ export declare const conditions: string[]; /** * Supporting the "react-native" field in dependencies' `package.json`. * * For example, with `package.json` like: * * ```js * { * "version": "...", * "name": "...", * "main": "lib/commonjs/index.js", * "module": "lib/module/index.js", * "react-native": "src/index.ts", * "types": "lib/typescript/index.d.ts", * // ... * } * ``` * * `"react-native": "src/index.ts"` will be used as the entry point instead of `"module": "lib/module/index.js"`. * * * See: * * https://v5.vite.dev/config/shared-options.html#resolve-mainfields */ export declare const mainFields: string[]; export declare function reactNativeCommonJsPlugin(options: { root: string; port: number; mode: 'build' | 'serve'; }): Plugin; //# sourceMappingURL=reactNativeCommonJsPlugin.d.ts.map