useVisibleStatus.d.ts 711 Bytes
/**
 * Popup should follow the steps for each component work correctly:
 * measure - check for the current stretch size
 * align - let component align the position
 * aligned - re-align again in case additional className changed the size
 * afterAlign - choice next step is trigger motion or finished
 * beforeMotion - should reset motion to invisible so that CSSMotion can do normal motion
 * motion - play the motion
 * stable - everything is done
 */
declare type PopupStatus = null | 'measure' | 'align' | 'aligned' | 'motion' | 'stable';
declare type Func = () => void;
declare const _default: (visible: boolean, doMeasure: Func) => [PopupStatus, (callback?: () => void) => void];
export default _default;