/** * TikTok Scraper * * Extract metadata from TikTok video URLs. * * TikTok embeds rich JSON data in their HTML pages including: * - Video description and hashtags * - Creator info * - Categories and suggested keywords * * Short URLs (vt.tiktok.com) redirect to full URLs with video IDs. */ import type { ScrapeOutcome, ScraperConfig } from './types'; /** * Extract video ID from a TikTok URL. * Handles both short URLs and full URLs. */ export declare function extractTikTokVideoId(url: string): string | null; /** * Resolve a short TikTok URL to its canonical form. * Follows redirects to get the full URL with video ID. */ export declare function resolveTikTokUrl(shortUrl: string, config?: ScraperConfig): Promise<{ canonicalUrl: string; videoId: string | null; }>; /** * Scrape metadata from a TikTok URL. */ export declare function scrapeTikTok(url: string, config?: ScraperConfig): Promise; //# sourceMappingURL=tiktok.d.ts.map