import { ReactElement } from 'react';
import { FormFields } from '@cezembre/forms';
import { Asset, OrderBook, OrderType } from '@goatim/client';
import { FormSubmitFunction } from '@cezembre/forms/dist/state';
export interface OrderItemEditorFields extends FormFields {
    asset?: Asset | string;
    order_type?: OrderType;
    price_limit?: number;
    nb_shares?: number;
}
export type OrderItemEditorSize = 'narrow' | 'big';
export interface OrderItemEditorProps {
    initialOrderItem?: OrderItemEditorFields;
    orderBook?: OrderBook;
    onSubmit?: FormSubmitFunction<OrderItemEditorFields>;
    onCancel?: () => unknown;
    label?: string;
    size?: OrderItemEditorSize;
    bankProposalQuotation?: number;
    onAcceptBankProposal?: (nbShares?: number) => unknown;
}
export declare function OrderItemEditor({ initialOrderItem, orderBook, onSubmit, onCancel, label, size, bankProposalQuotation, onAcceptBankProposal, }: OrderItemEditorProps): ReactElement | null;
