/** * Utility functions for Form Objects * PHP parity: Helper functions from SupportFormObjects */ /** * Get the portion of a string before the first dot * PHP parity: Str::before($key, '.') * * @example * beforeFirstDot('form.name') // 'form' * beforeFirstDot('name') // 'name' */ export declare function beforeFirstDot(key: string): string; /** * Get the portion of a string after the first dot * PHP parity: Str::after($key, '.') * * @example * afterFirstDot('form.name') // 'name' * afterFirstDot('form.address.city') // 'address.city' * afterFirstDot('name') // '' */ export declare function afterFirstDot(key: string): string; /** * Get a value from an object using dot notation * PHP parity: data_get($target, $key) * * @example * dataGet({ form: { name: 'John' } }, 'form.name') // 'John' */ export declare function dataGet(target: any, key: string): any; /** * Set a value on an object using dot notation * PHP parity: data_set($target, $key, $value) * * @example * const obj = { form: { name: 'John' } } * dataSet(obj, 'form.name', 'Jane') * // obj.form.name === 'Jane' */ export declare function dataSet(target: any, key: string, value: any): void; export { ucfirst } from '../../utils/string.js'; /** * Check if a value is a plain object */ export declare function isPlainObject(value: any): value is Record;