/** * Runtimes supported by a Lightning Out 2.0 app. * Exposed so CLI plugins can derive their flag `options` list from a single source of truth. */ export declare const LIGHTNING_OUT_RUNTIMES: readonly ["LWR_CORE", "CLWR"]; export type LightningOutRuntime = (typeof LIGHTNING_OUT_RUNTIMES)[number]; export declare const LIGHTNING_OUT_ACCESS_MODES: readonly ["guest", "authenticated"]; /** Result of normalizing a raw host-domain list. Arrays are index-aligned. */ export interface NormalizedHostDomains { /** Canonical origins (scheme://host[:port]) for allowedDomains + CorsWhitelistOrigin urlPattern. */ origins: string[]; /** Filesystem-safe token per origin (index-aligned with `origins`). */ fileTokens: string[]; } /** * Filesystem-/Metadata-API-safe token for an origin. Strips the scheme first * (so we never emit a leading "https_" the Metadata API misreads as a namespace * prefix), then collapses runs of non-alphanumerics to '_' and trims underscores. */ export declare function originToFileToken(origin: string): string; /** * Normalize a raw host-domain list into canonical origins + filename tokens. * Lowercases scheme/host, strips default ports, rejects wildcards/paths and any * scheme other than http/https, dedupes case-insensitively, and throws * if two distinct origins collide on the same filename token. */ export declare function normalizeHostDomains(raw: string[]): NormalizedHostDomains; /** * Validate a Salesforce DeveloperName within a max length. Returns an error * string (for the caller's error list) or undefined when valid. ASCII only: * starts with a letter, then letters/digits/single underscores, no consecutive * or trailing underscore. */ export declare function checkDeveloperName(value: string, field: string, maxLength: number): string | undefined; /** * True if `ref` is a component reference in kebab ("ns-my-component"), module/slash * ("ns/myComponent"), or Aura colon ("ns:MyComponent") form. This is a structural * well-formedness check only: it mirrors Core's Aura-enabled component-name validator * (setup_lightningout loApplicationEditHelper.validateComponentName). Because this * generator is offline it can't read the org's Aura-in-Lightning-Out preference, so it * always allows the colon (Aura) form and defers the org-policy decision to deploy time. */ export declare function isValidComponentRef(ref: string): boolean;