interface CreateGoogleTranslateJsonpCallbackOptions { pageLanguage: string; /** * google translate auto display original dom * * @default false */ autoDisplay?: boolean; } declare function createGoogleTranslateJsonpCallback(options: CreateGoogleTranslateJsonpCallbackOptions, cb: (...args: any[]) => any): { jsonpCallbackName: string; }; type CreateGoogleTranslateJsonpCallbackReturn = ReturnType; declare function GoogleTranslateFireEvent(GOOGLE_TRANSLATE_ORIGINAL_SELECT_DOM: HTMLElement, eventName?: string): void; interface ConfigurableWindow { window?: Window; } interface ConfigurableDocument { document?: Document; } interface ConfigurableNavigator { navigator?: Navigator; } interface ConfigurableLocation { location?: Location; } declare const defaultWindow: (Window & typeof globalThis) | undefined; declare const defaultDocument: Document | undefined; declare const defaultNavigator: Navigator | undefined; declare const defaultLocation: Location | undefined; declare function setCookie(name: string, val: string | number, expires: number, domain: string): void; declare function getCookie(name: string): string | undefined; interface UseMutationObserverOptions extends MutationObserverInit, ConfigurableWindow { } /** * Watch for changes being made to the DOM tree. * * @see https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver MutationObserver MDN * @param target * @param callback * @param options */ declare function useMutationObserver(target: HTMLElement, callback: MutationCallback, options?: UseMutationObserverOptions): { isSupported: boolean; start: () => void; stop: () => void; }; type UseMutationObserverReturn = ReturnType; interface CreateScriptTagOptions extends ConfigurableDocument { /** * Load the script immediately * * @default true */ immediate?: boolean; /** * Script type * * @default 'text/javascript' */ type?: string; /** * Add `async` attribute to the script tag * */ async?: boolean; /** * Add `defer` attribute to the script tag * */ defer?: boolean; crossOrigin?: 'anonymous' | 'use-credentials'; /** * Add custom attribute to the script tag * */ attrs?: Record; } /** * Inject