import moment from "moment-timezone";
import { IKeyObjectValue, IKeyValue, VMarkerSeverity } from "../type";
export declare function replaceTemplate(template: string, replacements: IKeyValue): string;
export declare function parsePerid(period: string): (string | number)[];
export declare function isdwm(period: string): boolean;
export declare function periodTransform(period: string): string;
export declare function generateRandomId(length?: number): string;
export declare function parseTimezoneOffset(timezone: string): number;
export declare function parserTimezone(time?: any, timezone?: string): moment.Moment;
export declare function parserTimeStamp(time?: any, timezone?: string): number;
export declare function periodConvert(period: string, time: number, isClose?: boolean): number;
export declare function isNotNum(num?: number): boolean;
export declare function argColorsHandle(args: any, colors: string[]): void;
export declare function encode(str: string): string;
export declare function decode(base64: string): string;
export declare function decimalTrunc(num: number, len: number): number;
export declare function decimalCeil(num?: number, precision?: number): number | undefined;
export declare function decimalFloor(num?: number, precision?: number): number | undefined;
export declare function parsePeriodHandle(period?: string): string;
export declare function transformPeriod(period: string): string;
export declare function getCustomTimeframeData(timeframe: string, tickerid: string, calc_bars_count: number, id?: string, dataId?: string): Promise<{
    status: number;
    errors: {
        endLineNumber: number;
        startColumn: number;
        endColumn: number;
        startLineNumber: number;
        message: any;
        type: VMarkerSeverity;
    }[];
    data?: undefined;
} | {
    data: any;
    status: number;
    errors?: undefined;
}>;
export declare function resultHandle(data: IKeyObjectValue[], dataSource: IKeyObjectValue[], values: IKeyObjectValue, period: string, timeframe: string, timeframeGaps: boolean | undefined, id: string, isNew?: boolean, isReplay?: boolean): IKeyObjectValue;
export declare function resultFilterHandle(values: IKeyObjectValue, barIndexs: number[][], dataSource: IKeyObjectValue[], timeframeGaps?: boolean): IKeyObjectValue;
export declare function filterKey(key: string): string;
export declare function filterComments(comments: IKeyObjectValue[]): {
    strategyAlertMsg: string;
    commentFilters: any[];
};
