import { Request } from 'express'; import { PrefixResponse, RegistryGetDpkPath, RegistryResponse, RegistrySaveDpkData, RouteFailureParams, RouteSuccessParams } from '../utils/types.js'; export declare class RegistryUtils { static saveDpkTarball({ name, version, data }: RegistrySaveDpkData): Promise; static saveDpkMetadata({ name, version, data }: RegistrySaveDpkData): Promise; static ensureDpkDir(path: string): Promise; static getDpkPath({ name }: { name: string; }): string; static getDpkLatestPath({ name }: { name: string; }): string; static getDpkVersionPath({ name, version }: RegistryGetDpkPath): string; static getDpkMetadataPath({ name, version }: RegistryGetDpkPath): string; static getDpkTarballPath({ name, version }: RegistryGetDpkPath): string; static saveMetadataToPath({ path, metadata }: { path: string; metadata: any; }): Promise; static saveTarballToPath({ path, tarball }: { path: string; tarball: any; }): Promise; static loadDpkMetadata(path: string): Promise; static loadDpkTarball(path: string): Promise; static createMetadata(metadata: any): any; static createDist(name: string, version: string): any; static updateMetadata(existingMetadata: any, newMetadata: any): any; static calculateShasum1(path: string): any; static isPrefixed(semver: string): boolean; static findPrefix(prefixed: string): PrefixResponse; static checkReqParams(params: Request['params']): string[][]; static routeFailure({ code, status, error }: RouteFailureParams): RegistryResponse; static routeSuccess({ code, status, data }: RouteSuccessParams): RegistryResponse; } //# sourceMappingURL=utils.d.ts.map