UNPKG

wle-aligner

Version:

Align two Wonderland Engine projects so that they can share, as much as possible, the same resources and structure

13 lines (12 loc) 1.13 kB
import { JSONParentToken, JSONTokenType, JSONValueToken, ObjectToken } from "@playkostudios/jsonc-ast"; export declare class ParentChildTokenPair { parent: JSONParentToken; child: JSONValueToken; childKey: string | null; constructor(parent: JSONParentToken, child: JSONValueToken, childKey?: string | null); } export declare function replaceParentTokenKey(oldKey: string, newKey: string, parentToken: JSONParentToken): boolean; export declare function getJSONTokensByKeyByTypeHierarchy(tokenKeyToFind: string, tokenTypeToFind: JSONTokenType, parentObjectToken: ObjectToken): ParentChildTokenPair[]; export declare function getJSONTokensHierarchy(findCallback: (tokenKey: string, tokenToCheck: JSONValueToken) => boolean, parentObjectToken: ObjectToken): ParentChildTokenPair[]; export declare function getEqualJSONTokens(tokenToCheck: JSONValueToken, parentObjectToken: ObjectToken, ignorePropertiesOrder?: boolean): ParentChildTokenPair[]; export declare function areTokensEqual(firstToken: JSONValueToken | null | undefined, secondToken: JSONValueToken | null | undefined, ignorePropertiesOrder?: boolean): boolean;