declare global { const umami: Umami; } /** * @see {@link https://umami.is/docs/tracker-functions|Umami Docs} */ interface Umami { track(): Promise | undefined; track(event_name: string, event_data?: Record): Promise | undefined; track(custom_payload: { website: string; [key: string]: unknown }): Promise | undefined; track( callback: (props: { hostname: string; language: string; referrer: string; screen: string; title: string; url: string; website: string; }) => { website: string; [key: string]: unknown } ): Promise | undefined; /** Pass in your own ID to identify a user. */ identify(identity_id: string): Promise; /** Save data about the current session. */ identify(identity_id: string, data: Record): Promise; /** To save data without a unique ID, pass in only a JSON object. */ identify(data: Record): Promise; } export {};