D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
wcloud.whatzi.online
/
node_modules
/
baileys
/
lib
/
Utils
/
Filename :
link-preview.d.ts
back
Copy
import type { WAMediaUploadFunction, WAUrlInfo } from '../Types/index.js'; import type { ILogger } from './logger.js'; export type URLGenerationOptions = { thumbnailWidth: number; fetchOpts: { /** Timeout in ms */ timeout: number; proxyUrl?: string; headers?: HeadersInit; }; uploadImage?: WAMediaUploadFunction; logger?: ILogger; }; /** * Given a piece of text, checks for any URL present, generates link preview for the same and returns it * Return undefined if the fetch failed or no URL was found * @param text first matched URL in text * @returns the URL info required to generate link preview */ export declare const getUrlInfo: (text: string, opts?: URLGenerationOptions) => Promise<WAUrlInfo | undefined>; //# sourceMappingURL=link-preview.d.ts.map