import type { BadgeDescriptor, FieldOptions } from '@stonecrop/schema'; /** * Row context passed to badge `format` functions in form fields. * @public */ export type BadgeFormatContext = { record?: Record; row?: Record; }; /** * Badge-aware field `format` function signature. * @public */ export type BadgeFormatFn = (value: unknown, context: BadgeFormatContext) => string | BadgeDescriptor; /** * Resolve a field value to a badge descriptor using format (if present) then options map. * @public */ export declare function resolveFieldBadge(value: unknown, options: FieldOptions | undefined, format: string | BadgeFormatFn | undefined, context?: BadgeFormatContext): BadgeDescriptor | undefined; /** * CSS custom properties for input-accent styling on a native input. * @public */ export declare function badgeInputAccentStyle(descriptor: BadgeDescriptor | undefined): Record | undefined; //# sourceMappingURL=badge.d.ts.map