import { type PackageManagerName } from '../pm/index.ts';
export interface PublishParams {
    /**
     * If > 0, split the publish into chunks of this many workspaces. Each
     * chunk spawns a fresh package-manager process, capping memory use on
     * large monorepos. Default is 0 (disabled, single `pnpm publish -r` call).
     *
     * WARNING (pnpm): if your npm account requires interactive 2FA / web-login
     * per publish, each chunk triggers a fresh auth ceremony. At chunkSize=1
     * that's one prompt per package. Only enable if you've tried bumping
     * `NODE_OPTIONS=--max-old-space-size` and still OOM.
     */
    chunkSize?: number;
    verbose?: boolean;
}
type PublishAuthCommand = 'npm' | 'pnpm';
export declare function publishAuthCommand(pmName?: PackageManagerName): PublishAuthCommand;
export declare function ensureNpmAuthenticated(): boolean;
export declare function ensurePublishAuthenticated(pmName?: PackageManagerName): boolean;
export declare const publish: ({ chunkSize, verbose }?: PublishParams) => number;
export {};
//# sourceMappingURL=publish.d.ts.map