/** License Copyright 2022 Beijing Volcano Engine Technology Ltd. All Rights Reserved. The @volcengine/imagex-react was developed by Copyright 2022 Beijing Volcano Engine Technology Ltd. (hereinafter “Volcano Engine”). Any copyright or patent right is owned by and proprietary material of the Volcano Engine. @volcengine/imagex-react is available under the Volcano Engine veImageX and licensed under the commercial license. Customers can contact service@volcengine.com for commercial licensing options. Here is also a link to subscription services agreement: https://www.volcengine.com/docs/508/66427 . Without Volcano Engine's prior written permission, any use of @volcengine/imagex-react, in particular any use for commercial purposes, is prohibited. This includes, without limitation, incorporation in a commercial product, use in a commercial service, or production of other artefacts for commercial purposes. Without Volcano Engine's prior written permission, the @volcengine/imagex-react may not be reproduced, modified and/or made available in any form to any third party. */ import { LocalStorageKeys } from './constants'; interface StaticImageData { src: string; height: number; width: number; } interface StaticRequire { default: StaticImageData; } interface LocalStorageData { [LocalStorageKeys.SupportWebp]: boolean; [LocalStorageKeys.SupportAvif]: boolean; [LocalStorageKeys.UA]: string; } type StaticImport = StaticRequire | StaticImageData; type ProtocolType = 'http:' | 'https:'; export declare const isStaticRequire: (src: StaticRequire | StaticImageData) => src is StaticRequire; export declare const isStaticImageData: (src: StaticRequire | StaticImageData) => src is StaticImageData; export declare const isStaticImport: (src: string | StaticImport) => src is StaticImport; export declare const isImagexUrl: (url: string) => boolean; export declare const isTosUrl: (url: string) => boolean; export declare const isHttpUrl: (url: string) => boolean; export declare const parseImagexUrl: (url: string) => { src: string; protocol: ProtocolType; domain: string; suffix: string; template: string; search: string; templateWithoutParams: string; params: string[]; }; export declare const parseOtherUrl: (url: string) => { src: string; protocol: ProtocolType; domain: string; search: string; }; export declare const isSSR: () => boolean; export declare const supportLocalstorage: () => boolean; export declare function getLocalStorage(key: K): T[K] | null; export declare function setLocalStorage(key: K, value: T[K]): boolean; export declare const browserUserAgent: string; export declare const isSafari: (ssrUa?: string) => boolean; export declare const isFirefox: (ssrUa?: string) => boolean; export declare const safeBtoa: (str: string) => string; export {};