export type FlipState = 'idle' | 'dragging' | 'animating' | 'zoomed-panning'; export type FlipEvent = 'grab' | 'release' | 'settle' | 'panStart' | 'panEnd' | 'flip'; /** Pure transition: the next state, or null if `event` is illegal from `state`. */ export declare function nextState(state: FlipState, event: FlipEvent): FlipState | null; /** Stateful holder around `nextState`; illegal events are ignored. */ export declare class FlipMachine { #private; constructor(initial?: FlipState); get state(): FlipState; /** Apply `event`; returns the new state, or null (no-op) if the event was illegal. */ send(event: FlipEvent): FlipState | null; }