import { EntitySchema, EntityData } from '../../types/schema';
/** Context providing entity-level info to nested field components (AI integrations, etc.) */
interface EntityFormContextValue {
    entityName: string;
    canUpdate: boolean;
}
export declare function useEntityFormContext(): EntityFormContextValue | null;
interface DynamicFormProps {
    schema: EntitySchema;
    initialData?: Partial<EntityData>;
    entityId?: number;
    onSuccess?: (data: EntityData) => void;
}
export declare function DynamicForm({ schema, initialData, entityId, onSuccess }: DynamicFormProps): import("react/jsx-runtime").JSX.Element;
/**
 * Humanize a backend sanity-check error message by:
 * - Stripping the backend prefix ("Sanity check for ... has failed with")
 * - Stripping raw "Field value: ..." suffixes
 * - Rewriting "has to be in length between X and Y" → "must be between X and Y characters"
 */
export declare function humanizeSanityError(msg: string, _fieldLabelMap?: Record<string, string>): string;
export {};
