/** * Apply a form's option defaults and reject anything it doesn't declare. * * The exported defaults map (e.g. `cardinalDefaults`) is the single source of * truth for each option's default value — the form never restates it, and the * docs generator imports it rather than scraping the body. A malformed options * argument (unknown key, wrong-typed value, inherited key) throws `TypeError`; * a known option with a value outside its declared allowed set (an exported * `
Values` map, e.g. gender) throws `RangeError` — right kind of value, * out of range — instead of silently falling back to the default. * @template {object} T * @param {T | undefined} options - Caller-provided options, or undefined * @param {Required} defaults - The form's default for every option * @param {Partial>} [values] - Allowed set per enum-valued option * @returns {Required} The options with every default applied */ export declare function resolveOptions(options: T | undefined, defaults: Required, values?: Partial>): Required;