export declare const INITIAL_SWAPPED_IFRAME_STEP = "EMPTY"; export declare const UNKNOWN_SWAPPED_IFRAME_STEP = "UNKNOWN"; /** * Narrows the runtime value received over postMessage without preventing * Swapped from introducing new enum-like steps. */ export declare function sanitizeSwappedIframeStep(step: unknown): string; export interface IframeStepNavigationResult { history: string[]; index: number; isBackNavigation: boolean; } /** * Infers back-navigation purely from step recurrence, since the Swapped embed * doesn't report navigation direction. A step already in history is treated * as a rewind (history truncated to that point); a new step is appended. */ export declare function resolveIframeStepNavigation(history: readonly string[], nextStep: string): IframeStepNavigationResult;