import { CommitField, GitlogOptions as GitlogOptions$1 } from "gitlog"; //#region ../../node_modules/.pnpm/@changesets+types@7.0.0/node_modules/@changesets/types/dist/index.d.mts //#region src/index.d.ts type MaybePromise = T | Promise; type VersionType = "major" | "minor" | "patch" | "none"; type AccessType = "public" | "restricted"; type Release = { name: string; type: VersionType; }; interface ComprehensiveReleaseBase { name: string; type: "major" | "minor" | "patch" | "none"; changesets: string[]; oldVersion: string | undefined; newVersion: string | undefined; } interface ComprehensiveMajorRelease extends ComprehensiveReleaseBase { type: "major"; oldVersion: string; newVersion: string; } interface ComprehensiveMinorRelease extends ComprehensiveReleaseBase { type: "minor"; oldVersion: string; newVersion: string; } interface ComprehensivePatchRelease extends ComprehensiveReleaseBase { type: "patch"; oldVersion: string; newVersion: string; } interface ComprehensiveNoneRelease extends ComprehensiveReleaseBase { type: "none"; oldVersion: string | undefined; newVersion: string | undefined; } type ComprehensiveRelease = ComprehensiveMajorRelease | ComprehensiveMinorRelease | ComprehensivePatchRelease | ComprehensiveNoneRelease; type Changeset = { summary: string; releases: Array; }; type NewChangeset = Changeset & { id: string; }; type PackageJSON = { name: string; version: string; dependencies?: { [key: string]: string; }; peerDependencies?: { [key: string]: string; }; devDependencies?: { [key: string]: string; }; optionalDependencies?: { [key: string]: string; }; resolutions?: { [key: string]: string; }; private?: boolean; publishConfig?: { access?: AccessType; directory?: string; registry?: string; [registry: `${string}:registry`]: string; }; }; type NewChangesetWithCommit = NewChangeset & { commit?: string; }; type ModCompWithPackage = ComprehensiveRelease & { packageJson: PackageJSON; dir: string; }; type GetReleaseLine = (changeset: NewChangesetWithCommit, type: VersionType, changelogOpts: null | Record) => MaybePromise; type GetDependencyReleaseLine = (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], changelogOpts: null | Record) => MaybePromise; type ChangelogFunctions = { getReleaseLine: GetReleaseLine; getDependencyReleaseLine: GetDependencyReleaseLine; }; //#endregion //#region src/options.d.ts type GitlogOptions = GitlogOptions$1; type SystemOptions = { repoBaseUrl: string; changesetTemplate: string; commitTemplate: string | null; commitMissingTemplate: string | null; issuePattern: string | null; issueTemplate: string | null; issueMissingTemplate: string | null; gitlogOptions: GitlogOptions; }; type UserOptions = Partial & { gitlogOptions?: Partial; [newKey: string]: unknown; }> | null; declare const defaultOptions: SystemOptions; declare const processOptions: (overrides: UserOptions) => SystemOptions; //#endregion //#region src/getDependencyReleaseLine.d.ts /** * This is heavily based on Changesets' default `getDependencyReleaseLine` */ declare const getDependencyReleaseLine: (changesets: NewChangesetWithCommit[], dependenciesUpdated: ModCompWithPackage[], userOptions: UserOptions) => Promise; //#endregion //#region src/getReleaseLine.d.ts declare const getReleaseLine: (changeset: NewChangesetWithCommit, type: VersionType, userOptions: UserOptions) => Promise; //#endregion //#region src/internals/getGitlogFn.d.ts type GitlogFn = typeof import("gitlog").default; declare const getGitlogFn: () => GitlogFn; //#endregion //#region src/internals/findCommitForChangeset.d.ts type GitlogCommit = Awaited>>[number]; declare const findCommitForChangeset: (changesetEntry: NewChangesetWithCommit, gitlogOptions: GitlogOptions) => Promise; //#endregion //#region src/internals/processTemplate.d.ts declare const processTemplate: (template: string | null, data: Record) => string; //#endregion //#region src/index.d.ts /** * This is the changelog formatter that Changesets sees. * All other exports from this library are for reference only. */ declare const changelogFunctions: ChangelogFunctions; //#endregion export { GitlogOptions, SystemOptions, UserOptions, changelogFunctions as default, defaultOptions, findCommitForChangeset, getDependencyReleaseLine, getReleaseLine, processOptions, processTemplate }; //# sourceMappingURL=index.d.cts.map