/** * A helper function to delete a property from an object or array at a path. * @since 1.0.0 * @param input The object or array to delete the property from. * @param path The path to the property to delete. * @returns The input object or array. */ declare function deleteProperty(input: unknown, path: string[]): T; declare const PROPERTY_NOT_FOUND: unique symbol; /** * A helper function to get a property from an object or array at a path. * @since 1.0.0 * @param input The object or array to get the property from. * @param path The path to the property to get. * @param fallbackToInput Whether to return the input if path has a length of 0. * @returns The property at the path or {@link PROPERTY_NOT_FOUND} if the property does not exist. */ declare function getProperty(input: unknown, path: string[], fallbackToInput?: boolean): T | typeof PROPERTY_NOT_FOUND; /** * A helper function to check if an object or array has a property at a path. * @since 1.0.0 * @param input The object or array to check the property at the path. * @param path The path to the property to check. * @returns Whether the property at the path exists. */ declare function hasProperty(input: unknown, path: string[]): boolean; /** * A helper function to set a property on an object or array at a path. * @since 1.0.0 * @param input The object or array to set the property on. * @param path The path to the property to set. * @param value The value to set the property to. * @returns The input object or array. */ declare function setProperty(input: unknown, path: string[], value: unknown): T; export { PROPERTY_NOT_FOUND, deleteProperty, getProperty, hasProperty, setProperty };