/** * Wraps images with figure and figcaption elements. * Uses the image's title as the figcaption content: `title` is the visible * caption, while `alt` stays the accessible description (using alt as a * caption would make screen readers announce the same text twice). Images * without a title — including decorative images with an empty alt — are left * alone, as are images carrying the exclusion attribute. * * @param selector - CSS selector for images to wrap (defaults to 'img') * @param exclusion - Attribute that marks images to skip (defaults to 'data-no-caption') * * @example * // Wrap all titled images on the page with figure elements * wrapImageWithFigure(); * * @example * // Wrap only images with a specific class * wrapImageWithFigure('.article-image'); * * @example * // Use a custom attribute to mark images that should not be wrapped * wrapImageWithFigure('img', 'data-skip-figure'); */ export declare const wrapImageWithFigure: (selector?: string, exclusion?: string) => void;