/** * Whether a package belongs to c15t and should be installed from the same * release line as the CLI. * * @param name - Bare package name, without a version specifier. * @returns `true` for `c15t` and every `@c15t/*` package. */ export declare const isC15tPackage: (name: string) => boolean; /** * Strip a version specifier from a dependency request. * * @param dependency - A request such as `c15t`, `c15t@alpha` or * `@c15t/scripts@3.0.0`. * @returns The package name, such as `c15t` or `@c15t/scripts`. */ export declare const dependencyName: (dependency: string) => string; /** * Packages that `scripts/tegami.ts` releases as one linked group, so they * share a major version. The CLI cannot import repository scripts, so the * list is copied here; `c15t-release.test.ts` fails when the two drift. */ export declare const LINKED_C15T_PACKAGES: ReadonlySet; /** * The npm specifier that selects the c15t release this CLI generates code * for. Linked packages use the CLI's major version, so an older CLI keeps * installing the API it writes code against. A prerelease CLI, such as a * canary build, installs the same stable release as its major. * * Pass `name` for a specific package: packages outside the linked release * group version on their own and get `latest` instead of the CLI's major. * * @param version - CLI version. Defaults to the CLI that published this source. * @param name - Package the specifier is for. Defaults to a linked package. * @returns A major version range, or `latest`. * * @example * ```ts * c15tReleaseSpecifier('3.1.0-canary.0'); // '3' * c15tReleaseSpecifier('3.2.1'); // '3' * c15tReleaseSpecifier('3.2.1', '@c15t/ui'); // 'latest' * ``` */ export declare const c15tReleaseSpecifier: (version?: string, name?: string) => string; /** * Pin a c15t dependency to the CLI's release line. Other packages and * requests that already carry a version are returned unchanged. * * @param dependency - Package name to install. * @param version - CLI version. Defaults to the CLI that published this source. * @returns For example `c15t@3` for `c15t` from a `3.2.1` CLI. */ export declare const withC15tRelease: (dependency: string, version?: string) => string; /** * Describe the release-line specifiers for an agent installing c15t. * * @param version - CLI version. Defaults to the CLI that published this source. * @returns One sentence naming the specifier for each kind of c15t package. * * @example * ```ts * describeC15tRelease('3.2.1'); * // 'Install c15t, …, @c15t/translations with @3, and other @c15t packages with @latest.' * ``` */ export declare const describeC15tRelease: (version?: string) => string; export { C15T_DOCS_ORIGIN } from './docs-origin.ts'; /** * The docs site for the c15t release a CLI belongs to. Prereleases of a new * major (`3.0.0-alpha.3`) have their own site, such as https://v3.c15t.com, * while c15t.com still documents the previous major. Everything else uses * https://c15t.com. * * @param version - CLI version. Defaults to the CLI that published this source. * @returns An origin without a trailing slash. * * @example * ```ts * c15tDocsOrigin('3.0.0-alpha.3'); // 'https://v3.c15t.com' * c15tDocsOrigin('3.2.1'); // 'https://c15t.com' * ``` */ export declare const c15tDocsOrigin: (version?: string) => string;