import type { Document } from '../../shared/models/Document'; import type { FormModule } from '../../../form/definition'; /** * Convert the Form execution into a promise. This function will mount the * Form and wait for user completion, resulting in a Document object * @param form The Form module instance object generated by calling component('form') * @param args The expected document id to be found after form emits results * @returns The document object containing the specified document id */ export declare function promisifyForm(form: FormModule['moduleInstance'], args: { documentId?: string | null; mountElement: HTMLElement; }): Promise; //# sourceMappingURL=promisifyForm.d.ts.map