/** Definitions and bags */ import { WizardStepDef } from "../wizardStep/wizardStepDef"; /** * Min width to trigger mobile mode */ export declare const MIN_WIDTH_TO_TRIGGER_MOBILE_MODE = 768; /** * Wizard Events args gathering the comments for the wizard, as well as all the steps. Servers as a definition that is sent to * wizard consumers so they can tap into the wizard and change the behavior of the wizard, like setting its comments, hide steps, ... */ export declare class WizardEventArgs { /** * wizard comments */ comments: string; /** * wizard callback */ callback: (promise: Promise) => Promise; /** * All wizard steps */ steps: Array; /** * Current wizard step */ currentStep: WizardStepDef; /** * Returns the value of the first step that matches the given id, and undefined * otherwise. * * @param id Step Id to look for. */ getStepById(id: string): WizardStepDef; } /** * Wizard definition interface which should be implemented by all wizards using the base wizard */ export interface WizardDef { /** * This is the handler called when the wizard is initiated. It should be used to load any async data required by the wizard. * The handler receives a WizardEventArgs object which provides a callback which should be called with a Promise for results settlement. * With this approach we use the handler only to define the async loading and delegate to the wizard the loading screen life cycle * * @param {(Promise)} [callback] The wizard callback function that will wait on the promise settlement to finish loading the screen */ onWizardInit(wizardArgs: WizardEventArgs): void; /** * This is the handler called when the wizard is initiated. It should be used to load any async data required by the wizard. * The handler receives a WizardEventArgs object which provides a callback which should be called with a Promise for results settlement. * With this approach we use the handler only to define the async loading and delegate to the wizard the loading screen life cycle * * @param {comments} [string] The comments supplied by the user which need to become available during the wizard finish * @param {(Promise)} [callback] The wizard callback function that will wait on the promise settlement to finish loading the screen */ onWizardFinish(wizardArgs: WizardEventArgs): void; }