/** * Initialise error summary component * * @deprecated Use {@link createAll | `createAll(ErrorSummary, options)`} instead. * @param {InitOptions & Partial} [options] */ export function initErrorSummary(options?: InitOptions & Partial): void; /** * Error summary component * * Adapted from https://github.com/alphagov/govuk-frontend/blob/v2.13.0/src/components/error-summary/error-summary.js * * @augments {ConfigurableComponent} */ export class ErrorSummary extends ConfigurableComponent { /** * Error summary default config * * @see {@link ErrorSummaryConfig} * @constant * @type {ErrorSummaryConfig} */ static defaults: ErrorSummaryConfig; /** * Error summary config schema * * @constant * @satisfies {Schema} */ static schema: Readonly<{ properties: { focusOnPageLoad: { type: "boolean"; }; disableAutoFocus: { type: "boolean"; }; }; }>; /** * @param {Element | null} $root - HTML element to use for component * @param {Partial} [config] - Error summary config */ constructor($root: Element | null, config?: Partial); /** * Error summary config override * * @param {Partial} _datasetConfig - Config specified by dataset * @returns {Partial} Config to override by dataset */ configOverride(_datasetConfig: Partial): Partial; /** * Get associated legend or label * * Returns the first element that exists from this list: * * - The `` associated with the closest `
` ancestor, as long * as the top of it is no more than half a viewport height away from the * bottom of the input * - The first `