import { PackageJson } from './types.js'; /** information about a package in a workspace */ export interface WorkspacePackage { /** path to the package root */ path: string; /** path to the package.json file (note that it might not be a .json file) */ packageJsonPath: string; /** whether this is the root package */ root: boolean; /** package.json of the package */ json: PackageJson; } /** collect package.jsons from a workspace */ export declare function collectPackageJsons(workspaceRoot: string | URL, includeRoot?: boolean): Promise; /** * filter packages to only include the ones that are to be published * to the given registry */ export declare function filterPackageJsonsForPublish(packages: WorkspacePackage[], registry: 'jsr' | 'npm'): WorkspacePackage[];