import { type PropertyValues } from 'lit'; import { UiSearch } from '../search/search.js'; /** * Carbon `cds-table-toolbar-search`: a `` for `` that filters the table as you * type (the table hides the rows whose text doesn't contain it). Collapsed to its magnifier (a square of the toolbar's * height) until focused, then as wide as the toolbar; it collapses again when it loses focus empty. `persistent` * keeps it open. Its name and placeholder default to "Filter table". * @cssprop --ui-field-open-background - The box's fill while a search is under way (default the layer's field fill) */ export declare class UiTableToolbarSearch extends UiSearch { static readonly styles: import("lit").CSSResult[]; /** Always open (Carbon `persistent`). */ persistent: boolean; private readonly tableLocalize; connectedCallback(): void; disconnectedCallback(): void; protected firstUpdated(changed: PropertyValues): void; /** Where the caret belongs after the text being typed goes in: after it. */ private caretAfter; private readonly onBeforeInput; /** * While the box is still widening from its magnifier (right after the click), Chrome leaves the caret where it * was after text that goes in by insertion (an IME, voice input, a test's insertText): typed fast, "สมชาย" * came out "ยาชมส". Puts the caret back after what went in. */ private readonly keepCaret; protected willUpdate(): void; private readonly onToolbarFocusIn; /** Empty and left: back to the magnifier, once focus has settled (moving to the clear button keeps it open). */ private readonly onToolbarFocusOut; } declare global { interface HTMLElementTagNameMap { 'ui-table-toolbar-search': UiTableToolbarSearch; } }