import type { Platform, TrendItem } from "./schema.js";
export interface NormalizedTrends {
    platform: Platform;
    items: TrendItem[];
    collectedAt: string;
    pipelineStatus: "ok" | "partial" | "failed";
    [key: string]: unknown;
}
/**
 * Returns a payload the frontend's `{items}` contract understands. Already-new
 * `{items}` payloads pass through untouched; legacy `{topics}` payloads are
 * mapped to `{items}`. Anything else is returned as-is.
 */
export declare function normalizeTrendsPayload(data: unknown, platform: Platform, collectedAtFallback: string): unknown;
//# sourceMappingURL=normalize.d.ts.map