UNPKG

flemo

Version:

A modern React router library with built-in motion animations and smooth transitions

18 lines (17 loc) 556 B
import { TransitionName } from '../transition/typing'; export interface History { id: string; pathname: string; params: object; transitionName: TransitionName; layoutId: string | number | null; } interface HistoryStore { index: number; histories: History[]; addHistory: (history: History) => void; replaceHistory: (index: number) => void; popHistory: (index: number) => void; } declare const useHistoryStore: import('zustand').UseBoundStore<import('zustand').StoreApi<HistoryStore>>; export default useHistoryStore;