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