import type { BaseWorker } from "../exchanges/base.worker"; import { type TWAPOpts, type TWAPState } from "../types/lib.types"; declare class TWAPInstance { id: string; accountId: string; opts: TWAPOpts; worker: BaseWorker; timeoutId: NodeJS.Timeout | null; get state(): TWAPState; get position(): import("../types/lib.types").Position | undefined; get ticker(): import("../types/lib.types").Ticker; get market(): import("../types/lib.types").Market; constructor({ id, accountId, opts, worker, }: { id: string; accountId: string; opts: TWAPOpts; worker: BaseWorker; }); placeOrder: () => void; resume: () => void; pause: () => void; stop: () => void; setState(state: TWAPState): void; } export declare class TWAPExtension { worker: BaseWorker; instances: Map; constructor({ worker }: { worker: BaseWorker; }); start({ accountId, twap }: { accountId: string; twap: TWAPOpts; }): void; pause({ twapId }: { accountId: string; twapId: string; }): void; resume({ twapId }: { accountId: string; twapId: string; }): void; stop({ twapId }: { accountId: string; twapId: string; }): void; } export {};