import { noSpecialInitialCommitIndicator } from "../../util.js"; import type { XchangelogConfigOptions } from '@-xun/changelog' with { 'resolution-mode': 'import' }; import type { ProjectMetadata } from '@-xun/project'; import type { GenerateNotesContext, Options as ReleaseConfig, SuccessContext, VerifyConditionsContext } from 'semantic-release' with { 'resolution-mode': 'import' }; import type { WritableDeep } from 'type-fest'; export type { ReleaseConfig }; export { noSpecialInitialCommitIndicator }; /** * Writable xrelease (semantic-release) options. * * Can be used to set any core option or plugin options. Each option will take * precedence over options configured in the configuration file and shareable * configurations. * * @see {@link ReleaseConfig} */ export type WritableReleaseConfig = WritableDeep; /** * The custom configuration object expected by the custom semantic-release * plugin steps defined below. */ export type PluginConfig = { projectRelativePackageLockPath: string; releaseSectionPath: string; parserOpts: NonNullable; writerOpts: NonNullable; [key: string]: unknown; }; /** * @see {@link assertEnvironment} */ export declare function moduleExport({ parserOpts, writerOpts, specialInitialCommit, projectMetadata }: Pick & { specialInitialCommit: string; projectMetadata: ProjectMetadata; }): WritableReleaseConfig; export declare const transformer: import("../../assets.js").Transformer; /** * @see {@link moduleExport} */ export declare function assertEnvironment({ projectRoot }: { projectRoot: string; }): Omit[0], 'derivedAliases'>; /** * This is a custom semantic-release plugin step that validates the options * passed via `release.config.cjs`. */ export declare function verifyConditions(pluginConfig: Partial, _context: VerifyConditionsContext): void; /** * This is a custom semantic-release plugin step that replaces * `nextRelease.notes` with the version patched by symbiote. */ export declare function generateNotes({ releaseSectionPath, parserOpts, writerOpts }: PluginConfig, context: GenerateNotesContext): Promise; /** * This is a custom semantic-release plugin step that logs a GitHub Actions (or * other) warning if the release pipeline ends with the repository in an unclean * state. */ export declare function success(_: PluginConfig, context: SuccessContext): Promise;