import { PreviewData, PreviewDataImage, Size } from './types';
export declare const getActualImageUrl: (baseUrl: string, imageUrl?: string) => string;
export declare const getHtmlEntitiesDecodedText: (text?: string) => string;
export declare const getContent: (left: string, right: string, type: string) => string;
export declare const getImageSize: (url: string) => Promise<Size>;
export declare const getPreviewData: (text: string) => Promise<PreviewData | {
    description: any;
    image: any;
    link: string;
    title: any;
}>;
export declare const getPreviewDataImage: (url?: string) => Promise<PreviewDataImage>;
export declare const oneOf: <T extends (...args: A) => any, U, A extends any[]>(truthy: T | undefined, falsy: U) => (...args: Parameters<T>) => ReturnType<T> | U;
export declare const REGEX_EMAIL: RegExp;
export declare const REGEX_IMAGE_CONTENT_TYPE: RegExp;
export declare const REGEX_IMAGE_TAG: RegExp;
export declare const REGEX_LINK: RegExp;
export declare const REGEX_META: RegExp;
export declare const REGEX_TITLE: RegExp;
//# sourceMappingURL=utils.d.ts.map