import type { Workspace } from '../../../pm/index.ts';
import type { DeplintRefType } from '../../package/index.ts';
import type { NormalizedApiExposureConfig } from '../config.ts';
import type { WorkspaceApiExposureResult } from '../types.ts';
import type { SharedProgramCache } from './program.ts';
export interface AnalyzePackageParams {
    cache?: SharedProgramCache;
    config: NormalizedApiExposureConfig;
    /** Terminal packages (apps/CLIs) keep everything in dependencies. */
    isTerminal?: boolean;
    /**
     * Deplint placement overrides (`commands.deplint.packages.<name>.placement`,
     * plus legacy `refType`).
     * Honored below `commands.apiExposure.packages.<name>.classification` in
     * the precedence chain so one declaration in xy.config.ts settles both
     * `xy deplint` and `xy api-exposure`.
     */
    refTypes?: Map<string, DeplintRefType>;
    workspace: Workspace;
    /** Names of workspace-internal packages (never peer candidates). */
    workspaceNames?: Set<string>;
}
/**
 * Runs the full API Exposure Index analysis for one workspace package:
 * syntactic coupling pass, type-checker exposure pass, dependency signals,
 * then scoring with override precedence (API-EXPOSURE-INDEX.md section 11).
 */
export declare function analyzeWorkspaceApiExposure({ cache, config, isTerminal, refTypes, workspace, workspaceNames, }: AnalyzePackageParams): WorkspaceApiExposureResult;
//# sourceMappingURL=analyzePackage.d.ts.map