/** * @omnify/ts — React Native Query Setup Generator (issue #63) * * When the codegen target has `platform: 'expo'`, this module generates a * `rn-query-setup.ts` utility file at the output root. The file wires up * TanStack Query's `focusManager` and `onlineManager` for React Native so * queries auto-refetch when the app comes back from the background and * pause when the device is offline. * * The file also exports an `apiFetch` wrapper that reads the bearer token * from Expo SecureStore (async) and injects it into every request. This * replaces the browser-cookie auth path used by web targets. */ import type { TypeScriptFile } from './types.js'; /** * Generate `rn-query-setup.ts` for Expo / React Native targets. * * @param auth - Auth strategy: 'secureStore' (default for expo) or 'cookie' */ export declare function generateRnQuerySetup(auth?: string): TypeScriptFile;