/** * Sets form field values from a data object using the name attribute. * Supports dot notation for accessing nested properties and array handling. * * @param form - The HTML form element to populate * @param data - The data object containing values to set in the form * * @example * // Basic usage with flat object * const form = document.querySelector('form'); * const data = { name: 'John', email: 'john@example.com' }; * setFormData(form, data); * * @example * // Using with nested objects via dot notation * const form = document.querySelector('form'); * const data = { * user: { * name: 'John', * contact: { * email: 'john@example.com' * } * } * }; * // Form has fields with names like "user.name" and "user.contact.email" * setFormData(form, data); * * @example * // Using with simple arrays using [] notation * const form = document.querySelector('form'); * const data = { * hobbies: ['Reading', 'Cycling', 'Cooking'] * }; * // Form has multiple fields with names like "hobbies[]" * setFormData(form, data); * * @example * // Using with array of objects using numeric indexers * const form = document.querySelector('form'); * const data = { * users: [ * { name: 'John', email: 'john@example.com' }, * { name: 'Jane', email: 'jane@example.com' } * ] * }; * // Form has fields with names like "users[0].name", "users[1].email", etc. * setFormData(form, data); */ export declare function setFormData(form: HTMLFormElement, data: object): void;