import type { EnvironmentConfiguration } from "../../config/types.js"; /** * Resolve a site name to its content-tree root item — the canonical * target for "publish this site" or "unpublish this site." Composes * scai's existing `discoverSites` (Authoring GraphQL tree walk for * `/sitecore/content//`) with the path → itemId * resolver shipped in PR 2b. * * Two round trips total per call (one for the tenant/site walk, one * for the path → itemId batch query). Callers using `--site` on a * single command pay this once. * * Returns the resolved site, its content-tree path, and the item id. * Throws `INPUT_INVALID` with a helpful hint listing available sites * when the requested name doesn't exist in the tenant. */ export interface ResolvedSiteRoot { siteName: string; tenantName: string; path: string; itemId: string; } export declare const resolveSiteRoot: (environment: EnvironmentConfiguration, siteName: string) => Promise;