export interface RouteEventData { scrollX: number; scrollY: number; popstate: boolean; } declare class Page { current: string | null; hasPushState: boolean | typeof window.history.pushState; scroll: {}; cb: ((href: string, data: RouteEventData) => void) | null; handleAnchor: boolean | ((newPath: string) => boolean); constructor(cb: (href: string, data: RouteEventData) => void, opts?: { pushState?: typeof history.pushState; handleAnchor?: boolean | ((newPath: string) => boolean); }); show(href: string, opts?: { popstate: boolean; }): void; saveScroll(): void; pushHref(href: string): void; push(href: string): void; } export default singlePage; export interface PushFunction { (href: string): void; push: (href: string) => void; show: (href: string) => void; page: InstanceType; } export declare function singlePage(cb: ((href: string, data: RouteEventData) => void), opts?: { pushState?: typeof history.pushState; handleAnchor?: boolean | ((newPath: string) => boolean); init?: boolean; }): PushFunction; //# sourceMappingURL=single-page.d.ts.map