/*! * @imqueue/cli library: config-path * * I'm Queue Software Project * Copyright (C) 2026 imqueue.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * If you want to use this code in a closed source (commercial) project, you can * purchase a proprietary commercial license. Please contact us at * to get commercial licensing options. */ /** * Reads a value from an object by a dot-path. Returns undefined if any * intermediate segment is missing or not an object. * * @param {any} obj - source object * @param {string} path - dot-path, e.g. 'registry.auth.user' * @return {any} */ export declare function getPath(obj: any, path: string): any; /** * Checks whether a dot-path resolves to a defined value on the given object. * * @param {any} obj - source object * @param {string} path - dot-path * @return {boolean} */ export declare function hasPath(obj: any, path: string): boolean; /** * Sets a value on an object by a dot-path, creating intermediate plain * objects as needed. Mutates and returns the given object. * * @param {any} obj - target object (mutated) * @param {string} path - dot-path, e.g. 'ci.provider' * @param {any} value - value to set * @return {any} - the mutated target object */ export declare function setPath(obj: any, path: string, value: any): any;