/** All 7 Contentstack regions */ type ContentstackRegion = "us" | "eu" | "au" | "azure-na" | "azure-eu" | "gcp-na" | "gcp-eu"; /** Resolved endpoint URLs for a region */ interface ContentstackEndpoints { /** CMA base URL, e.g. "https://api.contentstack.io" */ cma: string; /** CDA REST base URL, e.g. "https://cdn.contentstack.io" */ cda: string; /** GraphQL CDA endpoint */ graphql: string; /** Asset/image delivery base URL */ images: string; /** Application URL (for OAuth), e.g. "https://app.contentstack.com" */ app: string; /** Preview API base URL */ preview: string; /** GraphQL preview endpoint */ graphqlPreview: string; /** Launch API base URL */ launch: string; /** Personalize edge endpoint */ personalizeEdge: string; /** Brand Kit Management API base URL */ brandKit: string; /** Brand Kit GenAI and Knowledge Vault base URL */ brandKitAI: string; /** Developer Hub (Marketplace) API base URL */ developerHub: string; } /** * Resolve all API endpoints for a Contentstack region. * * @example * ```ts * const endpoints = resolveEndpoints("eu"); * // endpoints.cma === "https://eu-api.contentstack.com" * // endpoints.app === "https://eu-app.contentstack.com" * ``` */ declare function resolveEndpoints(region: ContentstackRegion): ContentstackEndpoints; /** * Resolve endpoints with https:// stripped (for SDK host parameters). * * @example * ```ts * const hosts = resolveHosts("eu"); * // hosts.cda === "eu-cdn.contentstack.com" * ``` */ declare function resolveHosts(region: ContentstackRegion): ContentstackEndpoints; /** * Normalize region aliases: "na" → "us", "NA" → "us", etc. * Case-insensitive. Throws ContentstackConfigError for unknown regions. */ declare function normalizeRegion(input: string): ContentstackRegion; export { type ContentstackEndpoints, type ContentstackRegion, normalizeRegion, resolveEndpoints, resolveHosts };