/** * Create a locale version * * Wraps the editor's create-translation call with what the localization UI needs * afterwards: the variant lists every switcher reads are stale the moment a new * version exists, so they are re-read rather than left showing the market as * empty until the editor is reloaded. */ import type { Document, TranslationMode } from '@pantheon-systems/css-client'; export interface CreateLocaleVersion { canonicalDocumentId: string; locale: string; mode?: TranslationMode; } /** Null where no editor context is available, which is how a host without one stays inert. */ export declare function useCreateTranslation(): ((params: CreateLocaleVersion) => Promise) | null;