import { IKeyObjectValue } from "../../../type";
export declare class Barstate {
    private _isMarketOpen;
    private _currentBarIndex;
    private _totalBarIndex;
    private _isRealTimeBar;
    private _preBarIndex;
    private _preIsRealTimeBar;
    private _isFirstRun;
    constructor();
    update(currentBarIndex: number, totalBarIndex: number, isRealTimeBar: boolean, isMarketOpen: boolean): void;
    get _barstateCacheData(): IKeyObjectValue;
    set _barstateCacheData(val: IKeyObjectValue);
    set isFirstRun(status: boolean);
    get isnew(): boolean;
    get islast(): boolean;
    get isfirst(): boolean;
    get ishistory(): boolean;
    get isrealtime(): boolean;
    get isconfirmed(): boolean;
    get islastconfirmedhistory(): boolean;
}
