interface NavigateOptions { replace?: boolean; state?: Record | null; } interface Location { pathname: string; state: Record | null; } interface LocationChangeEventDetail { path: string; state: Record | null; } declare global { interface WindowEventMap { locationchange: CustomEvent; } } export declare const _navigate: (path: string, options?: NavigateOptions) => void; export declare const _go: (delta: number) => void; export declare const _goBack: () => void; export declare const _goForward: () => void; export declare const _getCurrentPath: () => string; export declare const _getCurrentState: () => Record | null; export declare const _getLocation: () => Location; export declare const _getTypedState: >() => T | null; type SpeakOptions = { rate?: number; pitch?: number; volume?: number; voice?: SpeechSynthesisVoice | null; onStart?: () => void; onEnd?: () => void; onError?: (e: SpeechSynthesisErrorEvent) => void; }; export declare function _speak(text: string, options?: Omit): Promise; export {};