1import { ExportedConfig, Mod, ModPlatform } from '../Plugin.types'; 2export type BaseModOptions = { 3 platform: ModPlatform; 4 mod: string; 5 isProvider?: boolean; 6 skipEmptyMod?: boolean; 7 saveToInternal?: boolean; 8 /** 9 * If the mod supports introspection, and avoids making any filesystem modifications during compilation. 10 * By enabling, this mod, and all of its descendants will be run in introspection mode. 11 * This should only be used for static files like JSON or XML, and not for application files that require regexes, 12 * or complex static files that require other files to be generated like Xcode `.pbxproj`. 13 */ 14 isIntrospective?: boolean; 15}; 16/** 17 * Plugin to intercept execution of a given `mod` with the given `action`. 18 * If an action was already set on the given `config` config for `mod`, then it 19 * will be provided to the `action` as `nextMod` when it's evaluated, otherwise 20 * `nextMod` will be an identity function. 21 * 22 * @param config exported config 23 * @param platform platform to target (ios or android) 24 * @param mod name of the platform function to intercept 25 * @param skipEmptyMod should skip running the action if there is no existing mod to intercept 26 * @param saveToInternal should save the results to `_internal.modResults`, only enable this when the results are pure JSON. 27 * @param isProvider should provide data up to the other mods. 28 * @param action method to run on the mod when the config is compiled 29 */ 30export declare function withBaseMod<T>(config: ExportedConfig, { platform, mod, action, skipEmptyMod, isProvider, isIntrospective, saveToInternal, }: BaseModOptions & { 31 action: Mod<T>; 32}): ExportedConfig; 33/** 34 * Plugin to extend a mod function in the plugins config. 35 * 36 * @param config exported config 37 * @param platform platform to target (ios or android) 38 * @param mod name of the platform function to extend 39 * @param action method to run on the mod when the config is compiled 40 */ 41export declare function withMod<T>(config: ExportedConfig, { platform, mod, action, }: { 42 platform: ModPlatform; 43 mod: string; 44 action: Mod<T>; 45}): ExportedConfig; 46