import type { Package, WorkspaceConfig } from '../types/types.js'; import type { DiscoveryError } from '../core/errors.js'; import type { Result } from '../core/result.js'; /** * Non-fatal warning produced during discovery. */ export interface DiscoveryWarning { path: string; message: string; } /** * Successful discovery result containing packages and any non-fatal warnings. */ export interface DiscoveryResult { packages: Package[]; warnings: DiscoveryWarning[]; } /** * Discover all packages in the workspace by globbing for package.json files. * I/O adapter — reads from the file system using glob + readFile. */ export declare function discoverPackages(root: string, config: WorkspaceConfig): Promise>;