import { type RunTextCommand } from '../gh-cli/index.mts'; import { type LabelPolicy } from './label-policy.mts'; export type EnsureLabelsOptions = { labels: readonly string[]; /** `owner/name`; defaults to the repository `gh` resolves from the working directory. */ repo?: string; policy?: LabelPolicy; /** Rewrite metadata of labels that already exist (otherwise they are left untouched). */ update?: boolean; run?: RunTextCommand; }; /** * Creates missing repository labels through `gh` (or force-updates all with `update`). Every label * is validated against the policy before `gh` is called. A create that fails because the label * appeared concurrently is accepted. Returns the labels in the requested order. */ export declare function ensureLabels(options: EnsureLabelsOptions): Promise;