import type { BarrelDescriptor } from '../lint-init.ts';
export type BarrelRestrictionIssueKind = 'incomplete' | 'missing';
/** One import of a barrel sub-package that should be restricted. */
export interface BarrelRestrictionImportSite {
    file: string;
    line: number;
    subPackage: string;
    /** Workspace package name that owns `file`, when known. */
    workspacePackage?: string;
}
export interface BarrelRestrictionIssue {
    descriptor: BarrelDescriptor;
    importSites: BarrelRestrictionImportSite[];
    kind: BarrelRestrictionIssueKind;
    missingFromConfig: string[];
    usedSubPackages: string[];
}
export declare function findBarrelImportRestrictionIssues(rootDir: string): Promise<BarrelRestrictionIssue[]>;
export declare function reportBarrelImportRestrictionIssues(issues: readonly BarrelRestrictionIssue[], rootDir?: string): number;
export declare function checkBarrelImportRestrictions(rootDir: string): Promise<number>;
//# sourceMappingURL=checkBarrelImportRestrictions.d.ts.map