/** * With React Native 0.77, calling `@react-native-community/cli codegen` generates * some app level source files such as `RCTAppDependencyProvider.mm`. * These files are supposed to be only generated for apps * but the cli misbehaves and generates them for all sorts of projects. * You can find the relevant PR here: https://github.com/facebook/react-native/pull/47650 * This patch can be removed when this gets fixed in React Native. */ export declare function removeCodegenAppLevelCode(projectPath: string, packageJson: any): Promise; /** * Codegen generates a different set of files if the target is an app instead. * The following commit adds support for a --source argument to support calling codegen as a library: * https://github.com/facebook/react-native/commit/98b8f178110472e5fed97de80766c03b0b5e988c * Here we just check if the --source argument is supported. */ export declare function getCodegenCLISourceSupport(): Promise;