import { FC, PropsWithChildren } from "react";
import { API } from "@orderly.network/types";
export type TPSLOrderRowContextState = {
    order: API.AlgoOrderExt;
    tp_trigger_price?: number;
    sl_trigger_price?: number;
    onCancelOrder: (order: API.AlgoOrderExt) => Promise<void>;
    onUpdateOrder: (order: API.AlgoOrderExt, params: any) => Promise<void>;
    getRelatedPosition: (symbol: string) => API.PositionTPSLExt | undefined;
    position?: API.PositionTPSLExt;
};
export declare const TPSLOrderRowContext: import("react").Context<TPSLOrderRowContextState>;
export declare const useTPSLOrderRowContext: () => TPSLOrderRowContextState;
export declare const TPSLOrderRowProvider: FC<PropsWithChildren<{
    order: API.AlgoOrderExt;
}>>;
//# sourceMappingURL=tpslOrderRowContext.d.ts.map