import type { AttributeSet } from "../../types/build-type.js"; export type LeafLike = { required?: unknown; usage?: unknown; info?: unknown; owner?: unknown; type?: unknown; }; /** * Leniency controls how aggressively a leaf is flagged for re-generation. * * - `strict` : only flag when the leaf is missing or entirely empty. Use on * re-runs to skip anything that was already generated, even if * its content looks short or placeholder-ish. * - `normal` : also flag when any required text field is empty/whitespace. * - `lenient` : (default) also flag known placeholder markers and very short * `info` strings — catches half-finished or auto-stubbed leaves. * * Resolved from POLISH_LENIENCY env var (default `lenient`). */ export type Leniency = "strict" | "normal" | "lenient"; export declare function resolveLeniency(): Leniency; /** * A leaf is "incomplete" — and so will be re-generated — based on `leniency`. * See {@link Leniency} for thresholds. */ export declare function isIncompleteLeaf(leaf: LeafLike | undefined | null, leniency?: Leniency): boolean; /** * Look up the _description for a given path in the real x-attributes sets. * path[0] is the action; subsequent segments are payload keys (NO array indices). * Returns the leaf description object if found, else undefined. */ export declare function lookupExistingLeaf(attributes: AttributeSet[], ucId: string, path: string[]): LeafLike | undefined; //# sourceMappingURL=placeholder.d.ts.map