export interface PackageVersions { apiClientPackageVersion: string; blockRuntimePackageVersion: string; blockTypesPackageVersion: string; projectToolsPackageVersion: string; restPackageVersion: string; ttscLintPackageVersion: string; ttscPackageVersion: string; ttscUnpluginPackageVersion: string; /** * @deprecated Compatibility alias for {@link ttscPackageVersion}. */ tsxPackageVersion: string; typiaPackageVersion: string; /** * @deprecated Compatibility alias for {@link ttscUnpluginPackageVersion}. */ typiaUnpluginPackageVersion: string; typescriptPackageVersion: string; wpTypiaPackageExactVersion: string; wpTypiaPackageVersion: string; } /** * Explicit fallback ranges for managed WordPress-facing workspace dependencies. * * These remain centralized here even when individual scaffold flows resolve a * fresher local or installed manifest version first, so add-command defaults do * not drift across runtime modules. */ export declare const DEFAULT_WORDPRESS_ABILITIES_VERSION = "^0.10.0"; export declare const DEFAULT_WORDPRESS_BLOCKS_TYPES_VERSION = "^12.5.18"; export declare const DEFAULT_WORDPRESS_BLOCKS_VERSION = "~15.19.0"; export declare const DEFAULT_WORDPRESS_CORE_ABILITIES_VERSION = "^0.9.0"; export declare const DEFAULT_WORDPRESS_CORE_DATA_VERSION = "~7.46.0"; export declare const DEFAULT_WORDPRESS_DATA_VERSION = "~10.46.0"; export declare const DEFAULT_WORDPRESS_DATAVIEWS_VERSION = "~14.3.0"; export declare const DEFAULT_WORDPRESS_ENV_VERSION = "^11.2.0"; export declare const DEFAULT_WP_TYPIA_DATAVIEWS_VERSION = "^0.2.0"; /** * Resolve a managed package version range from linked workspace packages first, * then installed package manifests, while preserving the shared normalization * and manifest fingerprinting rules used by `getPackageVersions()`. * * @param packageName npm package whose manifest version should be consulted. * @param fallback Canonical range to use when no usable manifest version exists. * @param workspacePackageDirName Optional sibling monorepo package directory name. * @returns A normalized semver range suitable for generated dependency entries. */ export declare function resolveManagedPackageVersionRange(options: { fallback: string; packageName: string; workspacePackageDirName?: string; }): string; /** * Clears the in-memory cache used by `getPackageVersions()`. * * Long-lived processes can call this after regenerating or updating package * manifests when they want the next lookup to recompute version metadata * synchronously from disk. */ export declare function clearPackageVersionsCache(): void; /** * Backwards-compatible alias for integrations that adopted the original * internal invalidation name before the public cache policy was documented. */ export declare function invalidatePackageVersionsCache(): void; /** * Resolve package versions used in generated manifests and onboarding text. * * The lookup keeps a process-local cached result while recomputing manifest * fingerprints on each call. When the relevant package metadata changes on * disk, the cache key changes and the returned version object is refreshed. */ export declare function getPackageVersions(): PackageVersions;