import type { Config as CLIConfig } from "@react-native-community/cli-types" ; import { writeThirdPartyNotices } from "@rnx-kit/third-party-notices" ; type CliThirdPartyNoticesOptions = { rootPath : string ; sourceMapFile : string ; json : boolean ; outputFile ? : string ; ignoreScopes ? : string ; ignoreModules ? : string ; preambleText ? : string ; additionalText ? : string ; } ; export function rnxWriteThirdPartyNotices ( _argv , _config , { additionalText , ignoreModules , ignoreScopes , json , outputFile , preambleText , rootPath , sourceMapFile , } ) { writeThirdPartyNotices ( { rootPath , sourceMapFile , json , outputFile , ignoreScopes : ignoreScopes ?. split ( "," ) , ignoreModules : ignoreModules ?. split ( "," ) , preambleText : preambleText ? [ preambleText ] : undefined , additionalText : additionalText ? [ additionalText ] : undefined } ) ; }