import { CanDeactivateTypes } from "@hmcts/opal-frontend-common/guards/can-deactivate/types"; export declare abstract class AbstractFormParentBaseComponent { private readonly router; private readonly activatedRoute; stateUnsavedChanges: boolean; /** * Navigates to a specified route using the Angular Router. * * @param route - The target route to navigate to. * @param nonRelative - A boolean indicating whether the navigation should be absolute (true) * or relative to the current route (false). Defaults to false. * @param event - (Optional) The event object, typically from a click event, to prevent its default behavior. * @param routeData - (Optional) Additional data to pass to the target route's state. */ protected routerNavigate(route: string, nonRelative?: boolean, event?: Event, routeData?: any, fragment?: string): void; /** * Checks if an object has any non-empty values. * * @param form - The object representing form data with key-value pairs. * @returns A boolean indicating whether the object has any non-empty values. */ protected hasFormValues(form: { [key: string]: any; }): boolean; /** * If the user navigates externally from the site or closes the tab * Check if there is unsaved changes form state -> warning message * Otherwise -> no warning message * * @returns boolean */ protected canDeactivate(): CanDeactivateTypes; }