import { LitElement, type CSSResultGroup, type PropertyValues, type TemplateResult } from "lit"; import type { DeselectEvent, SelectEvent } from "./events.ts"; interface TapsiChipEventMap extends HTMLElementEventMap { [SelectEvent.type]: SelectEvent; [DeselectEvent.type]: DeselectEvent; } /** * @summary Chips are compact elements that represent an input, attribute, or action. * * @tag tapsi-chip * * @slot - Default content slot for chip text. * @slot [leading-icon] - The slot for an optional leading icon. * @slot [trailing-icon] - The slot for an optional trailing icon. * * @fires {SelectEvent} select - Fired when the chip is selected. (bubbles) * @fires {DeselectEvent} deselect - Fired when the chip is deselected. (bubbles) */ export declare class Chip extends LitElement { /** @internal */ static readonly styles: CSSResultGroup; /** @internal */ static readonly shadowRootOptions: { delegatesFocus: boolean; mode: ShadowRootMode; serializable?: boolean; slotAssignment?: SlotAssignmentMode; }; /** @internal */ addEventListener: (type: K, listener: (this: Chip, ev: TapsiChipEventMap[K]) => void, options?: boolean | AddEventListenerOptions) => void; /** @internal */ removeEventListener: (type: K, listener: (this: Chip, ev: TapsiChipEventMap[K]) => void, options?: boolean | EventListenerOptions) => void; private _selected; /** * Whether the chip is selected or not. * * @prop {boolean} selected * @attr {string} selected * @default false */ get selected(): boolean; set selected(isSelected: boolean); /** * Whether the chip is disabled or not. * * @prop {boolean} disabled * @attr {string} disabled * @default false */ disabled: boolean; /** * The size of the chip. * * @prop {"sm" | "md"} size * @attr {"sm" | "md"} size * @default "md" */ size: "sm" | "md"; /** * The value associated with the chip. * * @prop {string} value * @attr {string} value * @default "" */ value: string; private _hasTrailingIconSlot; private _hasLeadingIconSlot; private _leadingIconSlotNodes; private _trailingIconSlotNodes; private _root; private readonly _selectionController; protected willUpdate(changed: PropertyValues): void; private _handleLeadingIconSlotChange; private _handleTrailingIconSlotChange; /** @internal */ click(): void; /** @internal */ focus(options?: FocusOptions): void; /** @internal */ blur(): void; protected render(): TemplateResult; } export {};