import { NavigationState } from '../index.native'; import { NavigateConfig } from '../native/createHistory/createHistory.native'; import { NavigationActionType } from '../types/navigationActionType/NavigationActionType.native'; export type NavigateOptions = NavigateConfig; export type StoreValue = [ url: URL, action: NavigationActionType, previousValue?: [ url: URL, action: NavigationActionType ] ]; declare class HistoryStore { notification: Set<() => void>; private value; constructor(); /** * Get the current value of the store. * Ensures all URLs are correctly typed. */ getValue(): StoreValue; /** * Navigate to a new URL using the History API. * @param url - The target URL to navigate to. * @param config - Optional navigation configuration. */ navigate(url: URL, config?: NavigateConfig): void; onUrlChange(cb: (state: NavigationState) => void): () => void; /** * Subscribe to URL changes. * @param notification - Callback to be called on URL changes. * @returns Unsubscribe function. */ subscribe: (notification: () => void) => () => void; } declare const _default: HistoryStore; export default _default;