import { BaseNewFormSubmission } from '../types/submissions'; /** * Uploads any attachments that have not been uploaded yet. * * The submission is updated in place so that attachments uploaded before a * failure are kept on the pending queue submission and not uploaded again on * retry. Never pass a submission that is shared with form state, pass a copy * from `copySubmissionData()` instead. */ export default function prepareSubmissionData({ definition, submission, }: BaseNewFormSubmission): Promise; /** * Copies the arrays and plain objects in a submission (leaving values such as * `Blob`s shared) so that it can be passed to `prepareSubmissionData()` without * mutating the original. */ export declare function copySubmissionData(value: T): T;