UNPKG

@svelte-navigator/history

Version:
6 lines (5 loc) 585 B
import type { KeyedState, StateContainer, NavigatorLocation, Subscribable, HistoryContainer } from "./types"; export declare const getBrowserStateAndKey: <State = unknown>(history: History) => KeyedState<State>; export declare const createState: <State = unknown>(state?: State | null | undefined) => StateContainer<State>; export declare function createSubscribable<StoreValue = undefined>(getState?: () => StoreValue): Subscribable<StoreValue>; export declare function createHistoryContainer<State = unknown>(initialLocation: NavigatorLocation<State>): HistoryContainer<State>;