import type { IDataObject } from 'n8n-workflow'; export type GroupLayoutMeta = { groupLayoutId?: string; idInGroup?: number; totalItemInGroup?: number; isGroupLayout?: boolean; childnumber?: number; }; export type PhotoContentMeta = GroupLayoutMeta & { imageUrl?: string; width?: number; height?: number; caption?: string; }; export type VideoContentMeta = GroupLayoutMeta & { videoUrl?: string; thumbnailUrl?: string; durationMs?: number; fileSize?: number; videoWidth?: number; videoHeight?: number; }; export declare function parsePhotoContent(content: unknown, extraLayout?: Partial): PhotoContentMeta; export declare function parseVideoContent(content: unknown, extraLayout?: Partial): VideoContentMeta; /** Rút text hiển thị từ content Zalo (string thuần, JSON string, hoặc object link/card). */ export declare function extractMessageText(content: unknown): string; export declare function enrichMessagePayload(payload: unknown): IDataObject; export declare class ZaloAlbumAggregator { private readonly flushMs; private readonly buffers; constructor(flushMs?: number); process(payload: IDataObject, emit: (payload: IDataObject) => void, aggregateAlbums: boolean): void; clear(): void; private flush; }