/** * Site markets * * The locales a site publishes into, from its settings. Every locale picker in * the editor is bounded to this list, so a locale that isn't configured can't be * reached from the UI. */ export declare const SITE_MARKETS_KEY = "p1-site-markets"; export interface SiteMarkets { /** Empty until the settings arrive, and for a site with no markets. */ markets: string[]; /** False while the settings are still in flight, which an empty list alone doesn't tell you. */ loaded: boolean; /** The settings could not be read, so the markets are unknown rather than absent. */ failed: boolean; /** Ask for the settings again. */ retry: () => void; } /** * `enabled` false holds the request back where nothing is asking for markets * yet, so a surface that needs them can share this query without making every * other surface fetch settings it has no use for. */ export declare function useSiteMarkets({ enabled }?: { enabled?: boolean; }): SiteMarkets;