import * as _kb_labs_shared_command_kit from '@kb-labs/shared-command-kit';
import { RestInput } from '@kb-labs/sdk';

type StaleRequest = {
    detailed?: boolean;
};
type StalePackage = {
    name: string;
    path: string;
    reason: 'source-newer' | 'dependency-rebuilt' | 'missing-dist';
    sourceModified?: string;
    distModified?: string;
    affectedPackages: string[];
    affectedCount: number;
    severity: 'critical' | 'high' | 'medium' | 'low';
};
type StaleChain = {
    root: string;
    affected: string[];
    depth: number;
};
type StaleResponse = {
    stalePackages: StalePackage[];
    totalStale: number;
    totalAffected: number;
    criticalChains?: StaleChain[];
};
declare const _default: _kb_labs_shared_command_kit.Handler<unknown, RestInput<StaleRequest, unknown, unknown>, StaleResponse>;

export { type StaleChain, type StalePackage, type StaleRequest, type StaleResponse, _default as default };
