import { RecordMap, RT } from "../../r";
import { VariableType, VarValue } from "../../r/definitions/variables";
/** @deprecated */
export interface OldGlobalVariableStructure {
    "var_id"?: number;
    "var_name"?: string;
    "var_type": VariableType;
    "var_default": VarValue;
    "var_global"?: boolean;
}
/** @deprecated */
export interface OldGlobalVariableStructureMap {
    [key: string]: OldGlobalVariableStructure;
}
/**
 * Because global variables "Definitions" are stored in the db in an older format, we use function to migrate them to the latest format
 * Once all global variables definitions are migrated in the DB, we can stop calling this function
 */
export declare const migrateGlobalVarsDefitions: (oldGlobalVarMap: OldGlobalVariableStructureMap) => RecordMap<RT.variable>;
/**
 * This is the reverse of the migrateGlbalVars "Definitions" function, needed before saving back the global vars definitions into the db
 * Convert back into the older format. We can stop using this now, as there is a fallback in migrateGlobalVarsDefitions
 * to ignore conversion of values which are already in the latest format
 */
export declare const deprecateGlobalVarsRecordMap: (globalVarsRM: RecordMap<RT.variable>) => OldGlobalVariableStructureMap;
