/** * Expo Config Plugin for `react-native-mail-engine`. * * The package is a Nitro module, so bare React Native consumers autolink it * without any plugin. This plugin is for **Expo (prebuild)** consumers — it * writes the small amount of native config a mail engine needs: * * - **Android**: ensures `INTERNET` (and, by default, `ACCESS_NETWORK_STATE`). * - **iOS**: optionally adds the `fetch` background mode (`iosBackgroundFetch`) * for background refresh, and — for local development only — an App Transport * Security exception (`allowInsecureNetwork`) so you can talk to a plaintext * dev mail server. Android cleartext is gated behind the same flag. * * Usage in `app.json` / `app.config.ts`: * * ["react-native-mail-engine", { * "iosBackgroundFetch": false, * "allowInsecureNetwork": false, * "androidNetworkStatePermission": true * }] */ import { type ConfigPlugin } from '@expo/config-plugins'; export interface PluginOptions { /** Add the iOS `fetch` background mode. Defaults to `false`. */ iosBackgroundFetch?: boolean; /** * Allow cleartext (non-TLS) connections — iOS ATS `NSAllowsArbitraryLoads` and * Android `usesCleartextTraffic`. **Development only.** Defaults to `false`. */ allowInsecureNetwork?: boolean; /** Inject `ACCESS_NETWORK_STATE` on Android. Defaults to `true`. */ androidNetworkStatePermission?: boolean; } declare const _default: ConfigPlugin; export default _default;