27 lines
778 B
TypeScript
27 lines
778 B
TypeScript
import type { LightPlugin, LightClient } from '../types';
|
|
declare class RouterPlugin implements LightPlugin {
|
|
name: string;
|
|
version: string;
|
|
private client;
|
|
private config;
|
|
private currentTransaction;
|
|
private lastRoute;
|
|
private originalPushState?;
|
|
private originalReplaceState?;
|
|
private maxDurationTimer;
|
|
private routeChangeTimer;
|
|
setup(client: LightClient): void;
|
|
private loadConfig;
|
|
private instrumentHistory;
|
|
private handlePopState;
|
|
private instrumentHash;
|
|
private handleHashChange;
|
|
private handleRouteChange;
|
|
private processRouteChange;
|
|
private startNavigationTransaction;
|
|
private startMaxDurationTimer;
|
|
private finishCurrentTransaction;
|
|
destroy(): void;
|
|
}
|
|
export default RouterPlugin;
|