1import { ConfigPlugin } from '../Plugin.types'; 2import { PluginHistoryItem } from '../utils/history'; 3/** 4 * Prevents the same plugin from being run twice. 5 * Used for migrating from unversioned expo config plugins to versioned plugins. 6 * 7 * @param config 8 * @param name 9 */ 10export declare const withRunOnce: ConfigPlugin<{ 11 plugin: ConfigPlugin<void>; 12 name: PluginHistoryItem['name']; 13 version?: PluginHistoryItem['version']; 14}>; 15/** 16 * Helper method for creating mods from existing config functions. 17 * 18 * @param action 19 */ 20export declare function createRunOncePlugin<T>(plugin: ConfigPlugin<T>, name: string, version?: string): ConfigPlugin<T>; 21