generaltranslation
Version:
A language toolkit for AI developers
24 lines (23 loc) • 1.52 kB
TypeScript
import { Variable as VariableObject, VariableType } from '../types';
import { OldBranchType, OldGTProp, OldJsxChild, OldJsxChildren, OldJsxElement, OldVariableObject, OldVariableType } from './oldTypes.js';
import { GTProp, JsxChild, JsxChildren, JsxElement } from '../types';
/**
* Convert request data from old format to new format
*/
export declare function getNewJsxChild(child: OldJsxChild): JsxChild;
export declare function getNewJsxChildren(children: OldJsxChildren): JsxChildren;
export declare function getNewJsxElement(element: OldJsxElement): JsxElement;
export declare function getNewBranchType(branch: OldBranchType): 'b' | 'p';
export declare function getNewVariableType(variable: OldVariableType): VariableType;
export declare function getNewVariableObject(variable: OldVariableObject): VariableObject;
export declare function getNewGTProp(dataGT: OldGTProp): GTProp;
/**
* Convert response data from old format to new format
*/
export declare function getOldJsxChild(child: JsxChild): OldJsxChild;
export declare function getOldJsxChildren(children: JsxChildren | OldJsxChildren): OldJsxChildren;
export declare function getOldJsxElement(element: JsxElement): OldJsxElement;
export declare function getOldBranchType(branch: 'b' | 'p'): OldBranchType;
export declare function getOldVariableType(variable: VariableType): OldVariableType;
export declare function getOldVariableObject(variable: VariableObject): OldVariableObject;
export declare function getOldGTProp(dataGT: GTProp, i: number): OldGTProp;