saltfish
Version:
An interactive video-guided tour system for web applications
43 lines • 1.07 kB
TypeScript
interface StepTimeoutData {
currentStepId: string | null;
currentState: string;
isMinimized: boolean;
previousState?: string;
}
/**
* Manages step timeout functionality to destroy the player if a user
* stays on the same step for more than 60 seconds
*/
export declare class StepTimeoutManager {
private static readonly STEP_TIMEOUT_MS;
private currentStepId;
private stepTimeoutId;
private destroyCallback;
constructor(destroyCallback: () => void);
/**
* Update method - called when player state changes
*/
update(data: StepTimeoutData): void;
/**
* Sets or resets the step timeout
*/
private setStepTimeout;
/**
* Clears the current step timeout
*/
private clearStepTimeout;
/**
* Destroys the player safely
*/
private destroyPlayer;
/**
* Resets the timeout manager
*/
reset(): void;
/**
* Destroys the timeout manager and cleans up resources
*/
destroy(): void;
}
export {};
//# sourceMappingURL=StepTimeoutManager.d.ts.map