import { NavigationMode } from './navigation-mode.interface'; import { WizardState } from './wizard-state.model'; import { EventEmitter } from '@angular/core'; /** * A [[NavigationMode]], which allows the user to navigate without any limitations, * as long as the current step can be exited in the given direction * * @author Marc Arndt */ export declare class FreeNavigationMode extends NavigationMode { /** * Constructor * * @param {WizardState} wizardState The model/state of the wizard, that is configured with this navigation mode */ constructor(wizardState: WizardState); /** * Checks whether the wizard can be transitioned to the given destination step. * A destination wizard step can be entered if: * - it exists * - the current step can be exited in the direction of the destination step * * @param {number} destinationIndex The index of the destination wizard step * @returns {boolean} True if the destination wizard step can be entered, false otherwise */ canGoToStep(destinationIndex: number): Promise; /** * Tries to enter the wizard step with the given destination index. * When entering the destination step, the following actions are done: * - the old current step is set as completed * - the old current step is set as unselected * - the old current step is exited * - the destination step is set as selected * - the destination step is entered * * When the destination step couldn't be entered, the following actions are done: * - the current step is exited and entered in the direction `MovingDirection.Stay` * * @param {number} destinationIndex The index of the destination wizard step, which should be entered * @param {EventEmitter} preFinalize An event emitter, to be called before the step has been transitioned * @param {EventEmitter} postFinalize An event emitter, to be called after the step has been transitioned */ goToStep(destinationIndex: number, preFinalize?: EventEmitter, postFinalize?: EventEmitter): void; isNavigable(destinationIndex: number): boolean; /** * Resets the state of this wizard. * A reset transitions the wizard automatically to the first step and sets all steps as incomplete. * In addition the whole wizard is set as incomplete */ reset(): void; }