1import { WAUrlInfo } from '../Types'; 2export declare type URLGenerationOptions = { 3 thumbnailWidth: number; 4 timeoutMs: number; 5}; 6/** 7 * Given a piece of text, checks for any URL present, generates link preview for the same and returns it 8 * Return undefined if the fetch failed or no URL was found 9 * @param text first matched URL in text 10 * @returns the URL info required to generate link preview 11 */ 12export declare const getUrlInfo: (text: string, opts?: URLGenerationOptions) => Promise<WAUrlInfo | undefined>; 13 14