import type { TelegramLinkPreviewOptions } from '@puregram/api'; import { type Camelize } from './camelize.js'; type UrlExtras = Camelize>; type SizedExtras = Camelize>; /** * static factories for `LinkPreviewOptions` — passed as `link_preview_options` * in `sendMessage`, `editMessageText`, and `InputMessageContent.text` * * @example * ```ts * tg.send(chat, 'no preview here', { link_preview_options: LinkPreview.disabled() }) * tg.send(chat, 'check this', { link_preview_options: LinkPreview.large('https://example.com') }) * tg.send(chat, 'minimal', { link_preview_options: LinkPreview.small('https://example.com', { showAboveText: true }) }) * ``` */ export declare class LinkPreview { /** disable link preview entirely */ static disabled(): TelegramLinkPreviewOptions; /** explicit url for the preview, no size hint */ static url(url: string, params?: UrlExtras): TelegramLinkPreviewOptions; /** explicit url, prefer the large-media preview */ static large(url: string, params?: SizedExtras): TelegramLinkPreviewOptions; /** explicit url, prefer the small-media preview */ static small(url: string, params?: SizedExtras): TelegramLinkPreviewOptions; } export {}; //# sourceMappingURL=link-preview.d.ts.map