import type { AllPlatforms } from "@rnx-kit/types-bundle-config"; import ts from "typescript"; /** * Create a function that replaces a 'react-native' module reference with a * reference to the target platform's react-native package. This only happens * when targeting an out-of-tree platform like Windows or macOS. * * @param currentDirectory Current directory – used to find available React Native platforms * @param platform Target platform * @param disableReactNativePackageSubstitution Flag controlling whether or not the returned function has an effect * @returns Function which replaces a 'react-native' module reference, or a function which has no effect if module replacement is not needed or disabled */ export declare function createReactNativePackageNameReplacer(currentDirectory: string, platform: string, disableReactNativePackageSubstitution: boolean): (m: string) => string; /** * Factory which produces a function to enhance a TypeScript language service host. * The enhanced host uses a custom TypeScript module resolver capable of handling * React Native platform extensions (e.g. files like "app.ios.ts" and "app.native.ts"). * * @param platform Target platform for the React Native project * @param ts Used for _mocking_ only. This parameter must _always_ be last. * @returns A function which enhances a TypeScript language service host */ export declare function createEnhanceLanguageServiceHost(platform: AllPlatforms, { version: tsVersion }?: typeof ts): (host: ts.LanguageServiceHost) => void; //# sourceMappingURL=host.d.ts.map