import { type EntityJSON } from "@uipath/entity-modeler/schema"; /** Stable diagnostic codes: the editor keys Problems entries and pack output on * these. Messages are for humans and may change. */ export declare const DIAGNOSTIC_CODES: { readonly entityNameInvalid: "ENTITY_NAME_INVALID"; readonly entityNameNotUnique: "ENTITY_NAME_NOT_UNIQUE"; readonly fieldNameInvalid: "FIELD_NAME_INVALID"; readonly duplicateFieldName: "DUPLICATE_FIELD_NAME"; readonly fieldTypeNotAllowed: "FIELD_TYPE_NOT_ALLOWED"; readonly nameReserved: "NAME_RESERVED"; readonly systemFieldMissing: "SYSTEM_FIELD_MISSING"; readonly systemFieldModified: "SYSTEM_FIELD_MODIFIED"; readonly fieldsMalformed: "FIELDS_MALFORMED"; readonly tooManyMultilineMax: "TOO_MANY_MULTILINE_MAX"; readonly propertyTypeInvalid: "PROPERTY_TYPE_INVALID"; }; export type DiagnosticCode = (typeof DIAGNOSTIC_CODES)[keyof typeof DIAGNOSTIC_CODES]; export interface EntityDiagnostic { code: DiagnosticCode; /** Human-readable, actionable message. */ message: string; severity: "error"; /** The field the diagnostic is about, when field-scoped. */ fieldName?: string; } export interface ValidateEntityContext { /** Every OTHER entity name in the solution; only the host knows these. */ siblingNames: readonly string[]; } /** * Every schema rule in one place: the editor runs it on each edit and pack runs * it again, so the two can never disagree. Returns ALL diagnostics rather than * stopping at the first, and never throws. */ export declare function validateEntity(entity: EntityJSON, ctx: ValidateEntityContext): EntityDiagnostic[]; /** * Whether a stored field is a system field — exactly as `@uipath/entity-modeler` * decides it (`IsSystemField === true`, the row it locks read-only), plus the * five canonical names Data Fabric adds to every entity. Strictly `true`: a * hand-edited `"yes"` is truthy, and reading it as system exempted a custom * field from every custom-field rule. Validation and editing share this so * they cannot disagree. */ export declare function isSystemField(field: unknown): boolean;