/** * Terms the caller will not have translated — product and brand names — hidden * behind placeholders for the trip through the model, and put back afterwards. * * Hiding and revealing share a numbering that neither side may choose alone, so * they are handed out together: `hide` returns the texts to send along with the * `reveal` that undoes it. A caller cannot mismatch the two. * * A placeholder reads `{{n}}`, and that shape is part of the bargain: the model is * told to leave such sequences alone, so changing it changes what the model is * asked. No term is given a number any of the texts already reads — content can * carry a `{{0}}` of its own, a template variable say, and a term hidden behind * that same placeholder would be indistinguishable from it on the way back. Which * numbers are handed out instead is not promised, only that they are free. * * A term keeps one number across every text, so the same hidden term reads the * same everywhere. * * Longer terms are hidden first: hiding `Cloud` before `iCloud` would leave `i` * stranded in front of a placeholder, and the model translates that stray letter. * * A term is matched as plain text, anywhere it occurs and exactly as written: no * word boundaries, no case folding. `Acme` hides inside `Acmetech`, and `acme` is a * different term. A term that occurs in none of the texts still holds its number. * * Order is preserved and nothing else about the texts changes. An empty list of * terms returns the texts untouched and a `reveal` that does nothing. */ export type HideNotTranslatableWords = (texts: readonly string[], words: readonly string[]) => { hidden: string[]; reveal: (text: string) => string; }; /** How the placeholder shape is named to the model, from the one place that owns it. */ export declare const PLACEHOLDER_SHAPE: string; export declare const hideNotTranslatableWords: HideNotTranslatableWords;