export type LabelMetadata = { color: string; description: string; }; /** * How label names map to GitHub label metadata. `labels` holds explicit entries; any other name * gets `defaultColor` and `defaultDescription` (`{name}` is replaced by the label name). A name * starting with one of `strictPrefixes` must have an explicit entry, or it is rejected. */ export type LabelPolicy = { labels: Readonly>; defaultColor: string; defaultDescription: string; strictPrefixes: readonly string[]; }; export declare const DEFAULT_LABEL_POLICY: LabelPolicy; /** Validates a parsed JSON label policy; omitted fields fall back to `DEFAULT_LABEL_POLICY`. */ export declare function parseLabelPolicy(input: unknown): LabelPolicy; export declare function readLabelPolicyFile(path: string): LabelPolicy; /** Resolves a label's color and description, throwing for an unlisted strict-prefix label. */ export declare function labelMetadata(name: string, policy?: LabelPolicy): LabelMetadata;