import type { Plugin } from "rollup"; /** Shape of the ..translations.json asset emitted into the rollup bundle. */ export interface TranslationsAsset { messages: Array>; } /** Suffix used for translations assets (e.g. .translations.json, dashboard.translations.json). */ export declare const TRANSLATIONS_SUFFIX = ".translations.json"; /** * Rollup plugin that collects every string literal passed to `t()` imported * from `sn-translate` and emits them as a `.translations.json` asset in the * bundle so downstream plugins (e.g. snTranslateRecords in @servicenow/sdk-repack) * can consume them without shared closure state. * * In multi-entry builds each HTML page gets its own translations file * (e.g. dashboard.translations.json) so that only that page's messages * are injected into its HTML. Identical messages across pages naturally * coalesce via explicitId in the downstream static-content-plugin. */ export declare function collectSnTranslate(): Plugin;