/** * Field Descriptor Builder * * Constructs a frozen RillFieldDescriptor for a named field within a * RillType dict. Used during structural type field access to carry * field name and field type. * * @internal */ import type { SourceLocation } from '../../types.js'; import type { RillFieldDef, TypeStructure } from './types/structures.js'; /** * Field descriptor — carries field name and structural type when accessing a * dict-kind RillType field. */ interface RillFieldDescriptor { readonly __rill_field_descriptor: true; readonly fieldName: string; readonly fieldType: RillFieldDef; } /** * Build a frozen RillFieldDescriptor for the given field in a structural dict type. * * Throws RILL-R003 when fieldName is absent from structuralType.fields. */ export declare function buildFieldDescriptor(structuralType: TypeStructure & { kind: 'dict'; }, fieldName: string, location: SourceLocation): RillFieldDescriptor; export {};