/** * Marker for pre-recorded phrase rows loaded from the Voctiv platform LE PostgreSQL DB * ({@link PlatformApi.getRecords}). Pass to {@link ChannelAudio.play} instead of a URL/path string. * * Only used when Voctiv platform compatibility mode is enabled and the server has resolved * a trusted LE agent id/UUID plus `LEGACY_V3_RECORD_PHRASE_ROOT`. */ export declare const LEGACY_PHRASE_RECORD_BRAND: "__legacyPhraseRecord"; export interface LegacyPhraseRecord { readonly [LEGACY_PHRASE_RECORD_BRAND]: true; /** Absolute filesystem path passed to the audio decoder (same layout as old logic-executor `nv.say`). */ readonly path: string; /** Phrase transcript / label from DB. */ readonly text: string; /** Phrase name (`record_phrase.name`). */ readonly phraseName: string; } export declare function isLegacyPhraseRecord(source: unknown): source is LegacyPhraseRecord; /** Parameters for {@link PlatformApi.getRecords} (Voctiv platform LE `RecordPhrase` / `record_phrase_file`). */ export interface LegacyGetRecordsParams { /** Phrase group/name (`record_phrase.name`). */ phraseName: string; /** Business flag used by the phrase catalog, normally `context.flag`. */ flag: string; /** Language key used by the phrase catalog, normally `context.language`. */ language: string; } /** * Extended cache options: TTS cache **plus** persist into `record_phrase` / `record_phrase_file` * on the Voctiv platform so {@link PlatformApi.getRecords} can retrieve the audio later. * * Only the persist part requires platform compatibility mode, `LEGACY_V3_RECORD_PHRASE_ROOT`, * and a resolved LE agent id/UUID. The TTS file cache itself works in any mode. */ export interface CacheOptions { /** * Phrase group/name to create or update in `record_phrase`. * Defaults to `_cache` when omitted (same phrase used by the internal TTS cache in legacy mode). */ phraseName?: string; /** Defaults to dialog `flag` from channel params when omitted. */ flag?: string; /** Defaults to dialog language from channel params when omitted. */ language?: string; } //# sourceMappingURL=legacy-phrase.d.ts.map