@dash0/sdk-web
Version:
Dash0's Web SDK to collect telemetry from end-users' web browsers
15 lines (14 loc) • 747 B
TypeScript
export type WindowType = typeof window;
export declare const win: typeof window | undefined;
export declare const doc: typeof window.document | undefined;
export declare const nav: typeof navigator | undefined;
export declare const loc: typeof location | undefined;
export declare const perf: any;
export declare const encodeURIComponent: ((arg: string) => string) | undefined;
export declare const fetch: (((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) & typeof globalThis.fetch) | undefined;
export declare const localStorage: Storage | null;
export declare const sessionStorage: Storage | null;
/**
* Exposed via this module to enable testing.
*/
export declare function sendBeacon(url: string, data: string): boolean;