import type { MetroPlugin } from "@rnx-kit/metro-serializer" ; import type { Graph , Module , SerializerOptions } from "metro" ; import { detectCycles , PluginOptions } from "./detectCycles" ; export type { PluginOptions } from "./detectCycles" ; export function CyclicDependencies ( pluginOptions = { } ) { return ( entryPoint , _preModules , graph , _options ) => { detectCycles ( entryPoint , graph , pluginOptions ) ; } ; }