import WebAwesomeElement from '../../internal/webawesome-element.js'; import '../icon/icon.js'; /** * @summary Comparisons show the visual differences between two pieces of similar content using a draggable divider. Use * them for before/after images, design revisions, or side-by-side previews. * @documentation https://webawesome.com/docs/components/comparison * @status stable * @since 2.0 * * @dependency wa-icon * * @slot before - The before content, often an `` or `` element. * @slot after - The after content, often an `` or `` element. * @slot handle - The icon used inside the handle. * * @event change - Emitted when the position changes. * * @csspart base - The container that wraps the before and after content. * @csspart before - The container that wraps the before content. * @csspart after - The container that wraps the after content. * @csspart divider - The divider that separates the before and after content. * @csspart handle - The handle that the user drags to expose the after content. * * @cssproperty --divider-width - The width of the dividing line. * @cssproperty --handle-size - The size of the compare handle. * * @cssstate dragging - Applied when the comparison is being dragged. */ export default class WaComparison extends WebAwesomeElement { static css: import("lit").CSSResult; private readonly localize; handle: HTMLElement; /** The position of the divider as a percentage. */ position: number; private handleDrag; private handleKeyDown; handlePositionChange(): void; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'wa-comparison': WaComparison; } }