This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@whiskeysockets/baileys/lib/Utils/link-preview.d.ts
T

21 lines
813 B
TypeScript

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