export type PrefixCount = { prefix: string; count: number; }; /** Which list of an injected policy a command is checked against. */ export type CoverageList = 'allow' | 'deny' | 'excluded'; /** * The repository's own answer to "is this already handled": the caller loads its settings from * wherever and in whatever format it keeps them, and exposes only this question. `allow` and * `excluded` receive a normalized prefix; `deny` receives each raw command. */ export type CoveragePolicy = { covers: (list: CoverageList, commandOrPrefix: string) => boolean; }; export declare function groupByPrefix(commands: Array): Map; export declare function toSortedPrefixCounts(counts: Map): PrefixCount[]; export declare function unresolvedCount(counts: Map): number; export declare function coverageByPrefix(commands: Array, list: CoverageList, policy: CoveragePolicy): Map; export declare function splitByCoverage(counts: Map, list: CoverageList, policy: CoveragePolicy): { covered: PrefixCount[]; uncovered: PrefixCount[]; unresolvedCount: number; };