import { FieldDescriptor, UserInterface } from "@sankhyalabs/core";
import { ISearchArgument } from "../../components/ez-combo-box/ez-combo-box";
import { IOption } from "../../components/ez-search/ez-search";
import { IFieldConfig } from "./IFieldConfig";
export default interface IAbstractFieldMetadata {
  userInterface: UserInterface;
  name: string;
  label?: string;
  group?: string;
  readOnly?: boolean;
  required?: boolean;
  props?: any;
  contextName?: string;
  canShowError?: boolean;
  rows?: number;
  optionLoader?: (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
}
export declare const buildFieldMetadata: (descriptor: FieldDescriptor, config?: IFieldConfig) => IAbstractFieldMetadata;
