import { default as CortexElement } from '../../../../base/src/cortex-element.ts';
import { CSSResultGroup } from 'lit';

/**
 * @summary Radios buttons allow the user to select a single option from a group using a button-like control.
 *
 * @description Radio buttons are designed to be used with [radio groups](?s=atoms&id=/radio-group).
 * When a radio button has focus, the arrow keys can be used to change the selected option just like standard radio controls.
 *
 * @slot (default) - The radio button's label.
 * @slot prefix - A presentational prefix icon or similar element.
 * @slot suffix - A presentational suffix icon or similar element.
 *
 * @event cx-blur - Emitted when the button loses focus.
 * @event cx-focus - Emitted when the button gains focus.
 *
 * @cssproperty --toggle-size - The size of the radio button's toggle.
 * @cssproperty [--checked-border-color=var(--cx-color-primary)] - The border color of the radio button when it is checked.
 * @cssproperty [--checked-background-color=var(--cx-color-neutral-0)] - The background color of the radio button when it is checked.
 * @cssproperty [--checked-hover-border-color=var(--cx-color-primary-500)] - The border color of the radio button when it is checked and hovered.
 * @cssproperty [--checked-hover-background-color=var(--cx-color-neutral-0)] - The background color of the radio button when it is checked and hovered.
 *
 * @csspart base - The component's base wrapper.
 * @csspart button - The internal `<button>` element.
 * @csspart button--checked - The internal button element when the radio button is checked.
 * @csspart prefix - The container that wraps the prefix.
 * @csspart label - The container that wraps the radio button's label.
 * @csspart suffix - The container that wraps the suffix.
 */
export default class CxRadioButton extends CortexElement {
    static styles: CSSResultGroup;
    private readonly hasSlotController;
    input: HTMLInputElement;
    hiddenInput: HTMLInputElement;
    protected hasFocus: boolean;
    /**
     * @internal The radio button's checked state. This is exposed as an "internal" attribute so we can reflect it, making
     * it easier to style in button groups.
     */
    checked: boolean;
    /** The radio's value. When selected, the radio group will receive this value. */
    value: string;
    /** Disables the radio button. */
    disabled: boolean;
    /**
     * The radio button's size. When used inside a radio group, the size will be determined by the radio group's size so
     * this attribute can typically be omitted.
     */
    size: 'small' | 'medium' | 'large';
    /** Draws a pill-style radio button with rounded edges. */
    pill: boolean;
    /** The radio button's label. */
    label: string;
    connectedCallback(): void;
    private handleBlur;
    private handleClick;
    private handleFocus;
    handleDisabledChange(): void;
    /** Sets focus on the radio button. */
    focus(options?: FocusOptions): void;
    /** Removes focus from the radio button. */
    blur(): void;
    render(): import('lit').TemplateResult;
}
declare global {
    interface HTMLElementTagNameMap {
        'cx-radio-button': CxRadioButton;
    }
}
