import { default as React } from 'react';
import { FormField, TableRpcResultSelectRecord, TableSpec } from '@kottster/common';
import { TableColumn } from '../table-row';
interface RecordModalField {
    label?: string;
    column: string;
    formField?: FormField;
    required?: boolean;
    span?: number;
}
interface Props {
    width?: number;
    fields?: RecordModalField[];
    renderFieldLabel?: (column: TableColumn) => any;
    _internal?: {
        tableSpec: TableSpec;
        record: TableRpcResultSelectRecord;
        mode: 'create' | 'update';
        onCreate: (data: Record<string, any>) => void;
        onUpdate: (data: Record<string, any>) => void;
        onClose: () => void;
    };
}
declare function RecordModal({ fields: fieldsProp, _internal, renderFieldLabel, width }: Props): React.JSX.Element;
export default RecordModal;
