first commit

This commit is contained in:
2026-03-10 16:18:05 +00:00
commit 11f9c069b5
31635 changed files with 3187747 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { PageWillRender, PageFocusedEvent, PageBlurredEvent, PageRemoved } from './types';
export { PageWillRender, PageFocusedEvent, PageBlurredEvent, PageRemoved };
export type AnalyticsEvent = PageWillRender | PageFocusedEvent | PageBlurredEvent | PageRemoved;
type EventTypeName = AnalyticsEvent['type'];
type Payload<T extends EventTypeName> = Omit<Extract<AnalyticsEvent, {
type: T;
}>, 'type'>;
declare function addListener<EventType extends EventTypeName>(eventType: EventType, callback: (event: Payload<EventType>) => void): () => void;
export declare function emit<EventType extends EventTypeName>(type: EventType, event: Payload<EventType>): void;
export declare const unstable_navigationEvents: {
addListener: typeof addListener;
emit: typeof emit;
enable: () => void;
isEnabled: () => boolean;
saveCurrentPathname: () => void;
readonly currentPathname: string | undefined;
readonly currentParams: Record<string, string> | undefined;
};
//# sourceMappingURL=index.d.ts.map