1import type { ExpoConfig } from '@expo/config-types'; 2import type { PropertiesItem } from './Properties'; 3import type { ConfigPlugin } from '../Plugin.types'; 4import { BuildPropertiesConfig, ConfigToPropertyRuleType } from '../utils/BuildProperties.types'; 5/** 6 * Creates a `withGradleProperties` config-plugin based on given config to property mapping rules. 7 * 8 * The factory supports two modes from generic type inference 9 * ```ts 10 * // config-plugin without `props`, it will implicitly use the expo config as source config. 11 * createBuildGradlePropsConfigPlugin<ExpoConfig>(): ConfigPlugin<void>; 12 * 13 * // config-plugin with a parameter `props: CustomType`, it will use the `props` as source config. 14 * createBuildGradlePropsConfigPlugin<CustomType>(): ConfigPlugin<CustomType>; 15 * ``` 16 * 17 * @param configToPropertyRules config to property mapping rules 18 * @param name the config plugin name 19 */ 20export declare function createBuildGradlePropsConfigPlugin<SourceConfigType extends BuildPropertiesConfig>(configToPropertyRules: ConfigToPropertyRuleType<SourceConfigType>[], name?: string): ConfigPlugin<SourceConfigType extends ExpoConfig ? void : SourceConfigType>; 21/** 22 * A config-plugin to update `android/gradle.properties` from the `jsEngine` in expo config 23 */ 24export declare const withJsEngineGradleProps: ConfigPlugin<void>; 25export declare function updateAndroidBuildPropertiesFromConfig<SourceConfigType extends BuildPropertiesConfig>(config: SourceConfigType, gradleProperties: PropertiesItem[], configToPropertyRules: ConfigToPropertyRuleType<SourceConfigType>[]): PropertiesItem[]; 26export declare function updateAndroidBuildProperty(gradleProperties: PropertiesItem[], name: string, value: string | null | undefined, options?: { 27 removePropWhenValueIsNull?: boolean; 28}): PropertiesItem[]; 29