import { FormDataAdapter } from '../../adapters/types'; /** * Converts a plain object to a FormData instance. * * - If the value is an array: * - An empty array appends a null. * - Otherwise the array is split into file parts and non-file parts (per `formDataAdapter.isFilePart`). * - Each file part is appended separately under the same key via `formDataAdapter.appendFile`. * - Non-file parts are appended as a JSON string. * - An object (excluding file parts) is appended as a JSON string. * - Otherwise the value is appended as-is. * * @param data - The object containing key-value pairs to be converted. * @param formDataAdapter - Platform adapter used to detect and append file parts (web: `File`; RN: a `{ uri, name, type }` shape). * @returns A FormData instance populated with the processed data. */ export declare const convertToFormData: (data: T, formDataAdapter: FormDataAdapter) => FormData;