import type { CommandType, Conf, Package, PackageGraphNode, ProjectConfig, PublishCommandOption } from '@lerna-lite/core'; import { Command } from '@lerna-lite/core'; import type { OneTimePasswordCache } from '@lerna-lite/version'; export declare function factory(argv: PublishCommandOption): PublishCommand; export declare class PublishCommand extends Command { name: CommandType; conf: Conf & { snapshot?: any; }; otpCache: OneTimePasswordCache; gitReset: boolean; savePrefix: string; tagPrefix: string; hasRootedLeaf: boolean; npmSession: string; packagesToPublish: Package[]; publishedPackages: Package[]; packagesToBeLicensed?: Package[]; runPackageLifecycle: (pkg: Package, stage: string) => Promise; runRootLifecycle: (stage: string) => Promise | void; verifyAccess?: boolean; toposort: boolean; twoFactorAuthRequired: boolean; updates: PackageGraphNode[]; updatesVersions?: Map; get otherCommandConfigs(): string[]; get requiresGit(): boolean; constructor(argv: PublishCommandOption | ProjectConfig); configureProperties(): void; get userAgent(): string; initialize(): Promise; execute(): Promise; verifyWorkingTreeClean(): Promise<({ isDirty }: { isDirty: any; }) => Promise | undefined>; detectFromGit(): Promise<{ updates: Package[]; updatesVersions: string[][]; needsConfirmation: boolean; }>; detectFromPackage(): Promise<{ updates: any; updatesVersions: any; needsConfirmation: boolean; }>; detectCanaryVersions(): Promise<{ updates: any; updatesVersions: any; needsConfirmation: boolean; }>; confirmPublish(): Promise; prepareLicenseActions(): Promise; prepareRegistryActions(): Promise; updateCanaryVersions(): Promise; applyPublishConfigOverrides(): Promise; resolveLocalDependencyLinks(): Promise; resolveDependencyWithCatalogProtocols(): Promise; resolveLocalDependencyWorkspaceProtocols(): Promise; annotateGitHead(): void; serializeChanges(): Promise; resetChanges(): Promise; removePackageProperties(): Promise; removeTempLicensesOnError(error: any): Promise; requestOneTimePassword(): Promise | undefined; topoMapPackages(mapper: (pkg: Package) => Promise): Promise; packUpdated(): Promise; publishPacked(): Promise; npmUpdateAsLatest(): Promise; getDistTag(): string | undefined; getPreDistTag(pkg: Package): string | undefined; private getSummaryFilePath; }