@nanggo/social-preview
Version:
Generate beautiful social media preview images from any URL
14 lines (13 loc) • 392 B
TypeScript
import { SafeUrl } from '../../types';
/**
* Comprehensive URL validation with security checks.
*/
export declare function validateUrlInput(url: string): string;
/**
* Validate image URL with additional security checks.
*/
export declare function validateImageUrl(imageUrl: string): string;
/**
* Validate and sanitize URL.
*/
export declare function sanitizeUrl(url: string): SafeUrl;