import { LogContext } from '@balena/jellyfish-logger'; import type { ContractSummary } from '@balena/jellyfish-types/build/core'; import { TypedError } from 'typed-error'; /** * This function uploads an existing manifest to another name, effectively * creating a secondary tag for the same image/artifact * * @param logContext logging context * @param src new contract with the new version to tag for * @param target existing contract to be retagged * @param userSlug user who shall access the registry * @param session session id of given user */ export declare const retagArtifact: (logContext: LogContext, src: ContractSummary, target: ContractSummary, userSlug: string, session: string) => Promise; export declare class RegistryCommunicationError extends TypedError { cause: Error; registryConfig: { host: string; insecure: boolean; }; constructor(cause: Error, registryConfig: { host: string; insecure: boolean; }); }