import { linkScopeKey, popStateEventKey, pushStateEventKey } from './constants.js'; import type { MatchedRoute, RouteEvent, RouteOption, URLObserverCallbacks, URLObserverOption } from './custom_typings.js'; import type { URLObserverEntry } from './url-observer-entry.js'; export declare class URLObserver { #private; constructor(callback?: URLObserverCallbacks['callback']); get [Symbol.toStringTag](): string; add>(option: RouteOption): void; disconnect(): void; match = Record>(tail?: string): MatchedRoute; observe(routes: RegExp[], option?: Partial): void; remove(pathRegExp: RegExp, scope?: RouteOption['scope']): boolean; takeRecords(): URLObserverEntry[]; updateHistory(pathname: string, scope?: string): Promise; private _click; private _hashchange; private _popstate; private _runScopedRouteHandler; private _updateUrl; private _urlChangedWithBeforeRoute; } declare global { interface HTMLAnchorElement { [linkScopeKey]: string; } interface WindowEventMap { [popStateEventKey]: CustomEvent>>; [pushStateEventKey]: CustomEvent>>; } } //# sourceMappingURL=url-observer.d.ts.map