import { TranslationRef } from '@backstage/core-plugin-api/alpha'; /** * Represents a collection of messages to be provided for a given translation ref. * * @alpha * @remarks * * This collection of messages can either be used directly as an override for the * default messages, or it can be used to provide translations for a language by * by being referenced by a {@link TranslationResource}. */ export interface TranslationMessages { $$type: '@backstage/TranslationMessages'; /** The ID of the translation ref that these messages are for */ id: TId; /** Whether or not these messages override all known messages */ full: TFull; /** The messages provided for the given translation ref */ messages: TMessages; } /** * Options for {@link createTranslationMessages}. * * @alpha */ export interface TranslationMessagesOptions { ref: TranslationRef; full?: TFull; messages: false extends TFull ? { [key in keyof TMessages]?: string | null; } : { [key in keyof TMessages]: string | null; }; } /** * Creates a collection of messages for a given translation ref. * * @alpha */ export declare function createTranslationMessages(options: TranslationMessagesOptions): TranslationMessages;