/** Build-time v4 template distribution config. See resolve-template-source spec. */ export interface V4TemplateConfigInput { /** Freshly minted templates version. */ version: string; /** CD `goproduct` flag: `true` when this build ships to users. */ goproduct: boolean; /** The current `range` in `templates-config.json`, kept when still satisfied. */ previousRange: string; } export interface V4TemplateConfig { /** `~major.minor` SemVer range the build may resolve within. */ range: string; /** `true` for test/offline builds (bundled floor); `false` for shipped builds. */ bundled: boolean; /** The clean, suffix-free version published to the v4 channel (floor pin). */ localVersion: string; } /** Non-shipping builds resolve from the bundled floor; shipping builds resolve online. */ export declare function computeBundled(goproduct: boolean): boolean; /** * The clean, suffix-free version published to the v4 channel for a minted * version. It mirrors the VSIX version `vsc-version.sh` mints so the template * channel and the shipped extension always share one version: * * - PREVIEW (any `-beta.`-suffixed version): the odd-minor prerelease * line, date-stamped patch (`6.11.`). An even-minor base (lerna * `prerelease` keeps the stable `6.10.x` minor) is bumped to the next odd * minor, exactly as `vsc-version.sh` bumps the VSIX from `6.10.x` to * `6.11.`; an already-odd base keeps its minor. The date is read from * the `-beta.` preid, so every preview build gets a unique version * that satisfies `~major.minor`. * - STABLE (no date-stamped suffix): `major.minor.patch` as-is; the stable * lane already mints a clean version. * * This is the v4-channel counterpart of the clean `templates@..` * pattern the v3 channel uses for prereleases. */ export declare function computeV4PublishVersion(version: string): string; /** Compute the SemVer range a build may resolve within. */ export declare function computeRange(version: string, previousRange: string): string; /** Compute the full v4 distribution config block for `templates-config.json`. */ export declare function computeV4TemplateConfig(input: V4TemplateConfigInput): V4TemplateConfig; //# sourceMappingURL=templateConfig.d.ts.map