import { CSSResult, PropertyValueMap } from 'lit'; import { type TButtonContainer, type TSemverObj } from '@namiml/sdk-core'; import { NamiElement } from '../NamiElement'; export declare class NamiButton extends NamiElement { component: TButtonContainer; inFocusedState: boolean; scaleFactor: number; minSDKVersion: TSemverObj; private defaultFocused; private readonly _boundHandleFocus; private readonly _boundHandleBlur; constructor(); /** * The first visible text in this button's subtree, depth-first. Backs `{{ buttonText }}`. * Scanning only direct children returned undefined for a label wrapped in a group, so the * click's `linkName` was "" (NAM-5076). Matches Apple's `NamiButtonRole.firstTextValue(in:)`: * hidden subtrees and nested controls never contribute. */ firstTextValue(): string | undefined; connectedCallback(): void; disconnectedCallback(): void; protected updated(changedProperties: PropertyValueMap): void; private _handleFocus; /** * On CTV, focus is the selection signal — there is no tap to select a product (NAM-3607). * * - A focused PRODUCT button (one carrying a `sku`, attached per card by `appendSkuToComponents`) * is bridged into `state.selectedProducts`, so conditions and smart text authored against * `${state.selectedProducts.${state.currentGroupId}}` resolve against the *focused* product. * `selectSKU` is idempotent, so repeat focus events on the same card do not re-render. * - A focused NON-product button (login / restore / TV-provider — no `sku`) CLEARS the current * group's selection (NAM-4270, decision 3 on NAM-4265), the same positive signal the group * toggle already uses (`NamiSegmentPicker._handleFocusIn` → `clearSelectedProduct`, NAM-3606). * Every `${sku.*}`-conditioned tile then takes its non-premium branch, matching Apple's * `setFocusedSku(nil)` and Roku. This supersedes the earlier set-only rule from NAM-3607. * * Only focus-IN clears; `_handleBlur` never touches the selection, so focus merely leaving a * card does nothing, and on web focus moves only under user input (TVJS), never as a side * effect of a re-render — the Compose recomposition-loop hazard behind Android's settle guard * does not apply here. Every non-television form factor is ignored: tap drives selection there. */ private _selectFocusedProductOnTelevision; private _handleBlur; private _dispatchFocusChange; private _dispatchPageChange; private _handleKeyDown; private _handleKeyUp; private _handleClick; protected styles(): CSSResult; render(): any[] | import("lit-html").TemplateResult<1>; }