import { EventEmitter } from 'node:events'; export declare function getBuffer(url: string, options?: any): Promise; export interface StickerMetadata { pack?: string; author?: string; emojis?: string[]; id?: string; packname?: string; categories?: string[]; } export interface JimpOptions { greyscale?: boolean; invert?: boolean; sepia?: boolean; blur?: number; brightness?: number; contrast?: number; circle?: boolean; resize?: { width: number; height: number; }; text?: { content: string; alignmentX?: number; alignmentY?: number; color?: 'WHITE' | 'BLACK'; stroke?: boolean; }; } export interface WatermarkOptions { text?: string; position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'center'; opacity?: number; margin?: number; } export interface StickEngineOptions { webp?: boolean; edit?: JimpOptions | boolean; transparent?: string | string[] | false; metadata?: StickerMetadata; autoClean?: boolean; fps?: number; quality?: number; maxDuration?: number; fit?: 'natural' | 'contain' | 'cover' | 'fill' | 'none'; tempDir?: string; dirTemp?: string; Dirtemp?: string; watermark?: boolean | string | WatermarkOptions; marcaDagua?: boolean | string | WatermarkOptions; packname?: string; author?: string; categories?: string[]; } export type StickInput = string | Buffer; export interface StickResult { path: string; buffer: Buffer; base64: string; animated: boolean; width: number; height: number; size: number; } export interface MediaInfo { width: number; height: number; duration: number; } export declare class StickEngine extends EventEmitter { options: Required> & StickEngineOptions; private tempDir; private queue; private createdFiles; constructor(options?: StickEngineOptions); static create(input: StickInput, options?: StickEngineOptions): Promise; static toBuffer(input: StickInput, options?: StickEngineOptions): Promise; static toBase64String(input: StickInput, options?: StickEngineOptions): Promise; static toFile(input: StickInput, options?: StickEngineOptions): Promise; build(input: StickInput): Promise; addFile(file: StickInput): this; add(...files: StickInput[]): this; start(): Promise[]>; clean(): void; private track; private processFile; private materializeInput; private addExif; private detectAnimatedWebp; private buildScaleFilter; private convertToWebp; private applyJimpEdits; private applyWatermark; private getMediaInfo; static fileToBase64(filePath: string): string; } export declare function sendImageAsSticker(conn: any, jid: string, input: StickInput, quoted: any, options?: any): Promise>; export declare function sendVideoAsSticker(conn: any, jid: string, input: StickInput, quoted: any, options?: any): Promise>; export declare const sendImageAsSticker2: typeof sendImageAsSticker; export declare const sendVideoAsSticker2: typeof sendVideoAsSticker; export declare function imageToWebp(media: Buffer): Promise; export declare function videoToWebp(media: Buffer): Promise; export declare function writeExifImg(media: Buffer, metadata: any): Promise; export declare function writeExifVid(media: Buffer, metadata: any): Promise; export declare const imageToWebp2: typeof imageToWebp; export declare const videoToWebp2: typeof videoToWebp; export declare const writeExifImg2: typeof writeExifImg; export declare const writeExifVid2: typeof writeExifVid; export default StickEngine; //# sourceMappingURL=StickEngine.d.ts.map