UNPKG

@hhgtech/hhg-components

Version:
27 lines (26 loc) 1.34 kB
import { ParsedUrlQuery } from 'querystring'; import { LOCALE, LocaleType, SubotMessage, SubotNodeIntent } from "../../interfaces/types"; export declare const overrideParamsByQuery: (params: SubotMessage, query: ParsedUrlQuery) => SubotMessage; export declare const ssoIntents: (f: (props: { id?: string; defaultMessage?: string; }) => string) => Array<SubotNodeIntent>; export declare function checkUntilFinished(params: { condition: () => boolean; finished: () => void; timeout?: number; }): void; export declare const getHhgIdFromCookie: (reqCookie?: string) => any; export declare const getSubotCookieId: (queryCookieId?: string) => any; export declare const getUserIdFromCookie: (reqCookie?: string) => any; export declare const getUserInfoFromCookie: (reqCookie?: string) => { email: any; id: any; }; export declare const getWindowId: () => string; export declare const getHelloSitesUrl: (locale: LOCALE | LocaleType, ignoreLocal?: boolean) => string; export declare const checkMobile: (userAgent: string) => boolean; export declare const clickAndOpenInNewTab: (url: string) => void; export declare const TIME_RESET_RESEND_OTP = 30; export declare const isFakeEmail: (email?: string) => boolean; export declare function formatUrlWithEncrypedGa(path?: string, gaId?: string): string;