import { VelcronAppDefinition, VelcronDefinition, VelcronRenderContext, DeferredPromise } from "../models"; export interface ParseResult { is: boolean; value: T; } export declare class VelcronData { static dataBind(renderContext: VelcronRenderContext, text: string): string; static addCtxToVariableNames(template: string, skipIfNameStartsWith?: string, skipIfNameMatches?: Array, overridePrefixWhenNameMatches?: { [name: string]: string; }): string; static evauluateJs(template: string, renderContext: VelcronRenderContext, overrideNamesMatching?: {}): any; private static variables; static deleteVariables(id: string): void; static getVariable(name: string, renderContext: VelcronRenderContext): ParseResult; static setVariables(eventId: string, varsToSet: object): void; static evaluateSet(path: string, value: any, renderContext: VelcronRenderContext): void; static evaluateArray(template: string, renderContext: VelcronRenderContext): Array | null; static evaluateBoolean(template: string | Boolean, renderContext: VelcronRenderContext): boolean | null; static tryParseBoolean(bool: any): ParseResult; static isString(text: any): boolean; static isBoolean(value: any): boolean; static isNumber(value: any): boolean; static isUndefined(value: any): boolean; static isArray(obj: any): obj is ExtendArray; static isObject(value: any): boolean; static extendObject(obj: any): any; static getOrSetObjectByPath(object: Object, path: string, value?: any): T | null; static getOrSetObjectByPathUsingRenderContext(renderContext: VelcronRenderContext, path: string, value?: any): T; static getTokens(template: any, removeBrackets: boolean): string[]; static ensureEventId(event: string): string; static ensureKeys(ui: VelcronDefinition | VelcronAppDefinition, generateNewKeys?: boolean): void; static removeKeys(ui: VelcronDefinition | VelcronAppDefinition): void; static generateId(): string; static createDeferredPromise(): DeferredPromise; } interface ExtendArray extends Array { take: (amount: number) => Array; } export {};