import { FormInterface } from "./types.mjs"; //#region ../react-form/src/active-form.d.ts /** * Get the current active form */ declare function getActiveForm(): FormInterface | null; /** * Set the current active form */ declare function setActiveForm(form: FormInterface): void; /** * Remove the given form from being active form. * * The id is purged from `activeFormsIds` **unconditionally** — not only when the * form is the current active one — otherwise a form unmounted while a different * form is active would leave a dead id behind. Over a long-lived app that * mounts/unmounts forms out of LIFO order (modals, routes, wizards) those dead * ids would accumulate and the "restore last active form" logic would resolve * stale ids and fail to restore a still-live form. */ declare function removeActiveForm(form: FormInterface): void; /** * Get form by the given id */ declare function getForm(formId: string): FormInterface | null; /** * Add the given form to the active forms */ declare function addToFormsList(form: FormInterface): void; /** * Remove the given form from the active forms */ declare function removeFromFormsList(form: FormInterface): void; //#endregion export { addToFormsList, getActiveForm, getForm, removeActiveForm, removeFromFormsList, setActiveForm }; //# sourceMappingURL=active-form.d.mts.map