/** * Locale Rows for the open document * * The switcher's data: the site's markets joined to the variants its canonical * holds. A translation resolves up to its canonical first, so the list is the * same wherever in a page's locale set the editor is standing. */ import type { Document } from '@pantheon-systems/css-client'; import { type LocaleRow } from './locale-rows.js'; export declare const LOCALE_VARIANTS_KEY = "p1-locale-variants"; export interface LocaleRowsData { rows: LocaleRow[]; /** The site's configured markets, which is not every locale the rows cover. */ markets: string[]; /** The markets or the variants have yet to arrive. */ loading: boolean; /** A request behind the rows could not be read, so the list is unknown rather than empty. */ failed: boolean; /** The canonical every row is measured against, once known. */ canonical: Document | null; /** The canonical and its variants, for resolving a row's document to its path. */ documents: Document[]; /** Re-read the variants after one is created. */ refresh: () => void; /** Ask for the markets and the variants again. */ retry: () => void; } export declare function useLocaleRows(): LocaleRowsData;