//#region utils.d.ts type Result = { stdout: string; stderr: string; }; //#endregion //#region index.d.ts type SemverLevel = "patch" | "minor" | "major" | "prerelease"; declare function esc(str: string): string; declare function isSemver(str: string): boolean; declare function replaceTokens(str: string, newVersion: string): string; declare function incrementSemver(str: string, level: string, preid?: string): string; declare function findUp(filename: string, dir: string, stopDir?: string): string | null; declare function readVersionFromPackageJson(projectRoot: string): string | null; declare function readVersionFromPyprojectToml(projectRoot: string): string | null; declare function removeIgnoredFiles(files: Array, cwd?: string): Promise>; type GetFileChangesOpts = { file: string; baseVersion: string; newVersion: string; replacements?: Array<{ re: RegExp | string; replacement: string; }>; date?: string; }; declare function getFileChanges({ file, baseVersion, newVersion, replacements, date }: GetFileChangesOpts): [string, string | null]; declare function write(file: string, content: string): void; declare function joinStrings(strings: Array, separator: string): string; declare function getGithubTokens(): Promise; declare function getGiteaTokens(): string[]; type RepoInfo = { owner: string; repo: string; host: string; type: "github" | "gitea"; }; declare function getRepoInfo(cwd?: string, remote?: string): Promise; declare function createForgeRelease(repoInfo: RepoInfo, tagName: string, body: string, tokens: string[]): Promise; declare function writeResult(result: Result): void; //#endregion export { GetFileChangesOpts, RepoInfo, SemverLevel, createForgeRelease, esc, findUp, getFileChanges, getGiteaTokens, getGithubTokens, getRepoInfo, incrementSemver, isSemver, joinStrings, readVersionFromPackageJson, readVersionFromPyprojectToml, removeIgnoredFiles, replaceTokens, write, writeResult };