import type { PackageManager, Workspace } from '../pm/index.ts';
import { type IncrementalPlan } from './incremental.ts';
import { type ActionOutcome } from './result.ts';
export interface CompileParams {
    exitOnFail?: boolean;
    incremental?: boolean;
    incrementalPlan?: IncrementalPlan;
    jobs: number;
    pkg?: string;
    verbose?: boolean;
}
interface CompilePackageParams {
    exitOnFail?: boolean;
    pkg: string;
    verbose?: boolean;
}
type WorkspaceDependencyField = 'dependencies' | 'devDependencies';
interface WorkspacePackageJson {
    dependencies?: Record<string, string>;
    devDependencies?: Record<string, string>;
}
export interface CompileWorkspace extends Workspace {
    listed?: boolean;
    packageJson: WorkspacePackageJson;
}
export declare function allCompileWorkspaces(pm: PackageManager): CompileWorkspace[];
export declare function emitWorkspaces(pm: PackageManager): CompileWorkspace[];
export declare function validationWorkspaces(pm: PackageManager): CompileWorkspace[];
export declare function getWorkspaceDependencyNames(workspace: CompileWorkspace, workspaceNames: Set<string>, fields: WorkspaceDependencyField[]): string[];
export declare function createWorkspaceDependencyGraph(workspaces: CompileWorkspace[], fields: WorkspaceDependencyField[]): {
    dependencies: Map<string, Set<string>>;
    dependents: Map<string, Set<string>>;
    workspacesByName: Map<string, CompileWorkspace>;
};
export declare const compile: ({ verbose, pkg, incremental, jobs, incrementalPlan, exitOnFail, }: CompileParams) => ActionOutcome | Promise<ActionOutcome>;
export declare const compilePackage: ({ exitOnFail, pkg, verbose, }: CompilePackageParams) => ActionOutcome;
export declare const compileAll: ({ exitOnFail, jobs, verbose, incremental, incrementalPlan, }: CompileParams) => Promise<ActionOutcome>;
export {};
//# sourceMappingURL=compile.d.ts.map