import type { Options } from "./types.js"; /** * CLI execute entry function */ export declare function mirrorPackage(packageName: string, options: Options): Promise; /** * detect if cwd has a package.json */ export declare function ensurePackageJsonExists(): Promise; /** * download the tarball of jsr packgeName `[@scope]/[package-name][@version?]` * @param packageName * @param dir target directory * @returns tarball file path */ export declare function downloadTarball(packageName: string, dir: string): Promise<{ tarballFilePath: string; extractDirPath: string; }>; /** * overwrite the description fields(name, author, repository...) of jsr artifact package using raw packages.json of the repository * @param rawPackageDir * @param jsrPackageDir */ export declare function overwriteDescriptFields(rawPackageDir: string, jsrPackageDir: string, addtionalFields?: string[]): Promise; /** * check fields of `checkJsonKeys` between raw package.json (in current dir) and jsr package.json, * stop the process if there fields have differents. */ export declare function checkFields(rawPackageDir: string, jsrPackageDir: string): Promise<{ ok: boolean; message?: string; }>; //# sourceMappingURL=lib.d.ts.map