UNPKG

pixel-forge

Version:

A comprehensive generator for social media previews, favicons, and visual assets across all platforms

63 lines (62 loc) 1.68 kB
import type { PixelForgeConfig } from '../../core/config-validator'; export interface WhatsAppOptions { title?: string; description?: string; template?: 'basic' | 'gradient' | 'custom'; includeProfile?: boolean; includeLinkPreview?: boolean; } export declare class WhatsAppGenerator { private config; private sourceImage; constructor(sourceImage: string, config: PixelForgeConfig); /** * Generate WhatsApp-optimized images */ generate(options?: WhatsAppOptions): Promise<void>; /** * Generate WhatsApp profile image (400x400) */ private generateProfileImage; /** * Generate WhatsApp link preview image (1200x630) */ private generateLinkPreviewImage; /** * Generate standard WhatsApp sharing image (1200x630) */ private generateStandardImage; /** * Generate square WhatsApp image (1200x1200) */ private generateSquareImage; /** * Get HTML meta tags for WhatsApp */ getMetaTags(): string[]; /** * Get Next.js metadata configuration for WhatsApp */ getNextMetadata(): { openGraph: { title: string; description: string | undefined; images: { url: string; width: number; height: number; alt: string; }[]; type: string; }; other: { 'format-detection': string; 'apple-mobile-web-app-capable': string; 'mobile-web-app-capable': string; }; }; /** * Get list of generated files */ getGeneratedFiles(): string[]; }