/// <reference types="node" />
import { ReactElement } from 'react';
import { OrderBook, OrderType } from '@goatim/client';
import { FormSubmitFunction } from '@cezembre/forms/dist/state';
import { UrlObject } from 'url';
export interface OrderEditorFields {
    order_type?: OrderType;
    price_limit?: number;
    nb_shares?: number;
}
export type OrderEditorSize = 'narrow' | 'big';
export interface OrderEditorProps {
    initialOrder?: OrderEditorFields;
    orderBook?: OrderBook;
    onSubmit?: FormSubmitFunction<OrderEditorFields>;
    onCancel?: () => unknown;
    connectButtonHref?: string | UrlObject;
    label?: string;
    size?: OrderEditorSize;
    bankProposalQuotation?: number;
    onAcceptBankProposal?: (nbShares?: number) => unknown;
    isConnected?: boolean;
}
export declare function OrderEditor({ initialOrder, orderBook, onSubmit, onCancel, label, size, bankProposalQuotation, onAcceptBankProposal, isConnected, connectButtonHref, }: OrderEditorProps): ReactElement | null;
