/** * A catalogue problem the core refuses to plan or prepare around, which the * operator fixes in the catalogue rather than by retrying. * * Read off the bridge's error text, `Name(reason, subject): message`, which is * how core refusals reach JavaScript. Anything else stays an unexplained * failure the caller words generically. */ export type ProductionRunPlanProblemReason = 'missingDocument' | 'cyclicRecipe' | 'unofferedBindingUnit' | 'malformedRule' | 'unitChanged'; export interface ProductionRunPlanProblem { reason: ProductionRunPlanProblemReason; /** The sku, recipe or rule owner the refusal is about. */ subject: string; } export declare function productionRunPlanProblem(error: unknown): ProductionRunPlanProblem | null; /** The localized title and description, naming the subject where it exists. */ export declare function productionRunPlanProblemCopy(t: (key: string, params?: Record) => string, problem: ProductionRunPlanProblem, nameOf: (id: string) => string | undefined): { title: string; message: string; };