import { AssetPreset } from "../../assets.js"; import type { RelativePath } from '@-xun/fs'; import type { Package, XPackageJson } from '@-xun/project'; export type GeneratorParameters = [json: Package['json'] & Required>, isHybridrepo: boolean, repoUrl: string, projectRelativePackageRoot: RelativePath | undefined, preset: AssetPreset | undefined]; export declare const githubUrlRegExp: RegExp; /** * Takes an {@link XPackageJson} instance and returns the repository owner and * name or throws if said information is not derivable. */ export declare function parsePackageJsonRepositoryIntoOwnerAndRepo({ repository, name }: XPackageJson): { owner: string; repo: string; }; /** * Takes a `repoUrl` and returns a {@link XPackageJson.repository} non-primitive * object. */ export declare function deriveJsonRepositoryValue(repoUrl: string): { type: string; url: string; }; /** * Takes an `owner` and a `repo` and returns a URL pointing to a GitHub * repository. */ export declare function deriveGitHubUrl({ owner, repo }: ReturnType): string; export declare const transformer: import("../../assets.js").Transformer;