import { ComponentPath } from '../classes/componentpath'; import { ComponentPayload } from '../classes/componentpayload'; /** * Navigates a component object using a custom path and returns the value at the end of the path. * Path elements can be: * - 'key': object key * - '[n]': array index n * - '(keyName)': find object in array with .key === keyName * @param object The root object to navigate. * @param path The ComponentPath object containing the navigation path as an array. * @param options Optional settings for navigation. * - objectIsDefinitionObject: If true, indicates that the root object is a definition object, which converts all array indices to 0 * @returns The value at the end of the path, or undefined if the path is invalid. */ export declare function getObjectValueAtPath(object: any, path: ComponentPath, options?: { objectIsDefinitionObject?: boolean; }): any; /** * Navigates a component object using a custom path and sets the value at the end of the path. * Path elements can be: * - 'key': object key * - '[n]': array index n * - '(keyName)': find object in array with .key === keyName * @param component The root object to navigate. * @param path The ComponentPath object containing the navigation path as an array. * @param newValue The new value to set at the end of the path. * @returns true if the value was successfully set, false if the path was invalid or if the value could not be set. */ export declare function setObjectValueAtPath(component: any, path: ComponentPath, newValue: any): boolean; /** * Formats a script at a specific path in the componentJson of a ComponentPayload. * @param payload the ComponentPayload object containing the componentJson * @param path the path to the script in the componentJson * @returns true if the script was successfully formatted and set (regardless of an actual change), false otherwise */ export declare function formatScriptAtComponentPath(payload: ComponentPayload, path: ComponentPath): boolean;