import { type AriaRole, type ClipboardEventHandler, type FocusEvent, type KeyboardEvent, type MouseEvent, type ReactNode } from "react"; import type { SX, ThemeKeys } from "../../theme"; /** * Flexible base Input, provided with no height or block padding. */ export interface BaseInputProps { autoComplete?: string; id?: string; inputMode?: "decimal" | "text"; name?: string; placeholder?: string; readOnly?: boolean; startAdornment?: ReactNode; prefix?: ReactNode; prefixTooltip?: string; suffix?: ReactNode; endAdornment?: ReactNode; padding?: Padding; value: string; variant?: "normal" | "link" | "success" | "error"; cursor?: "text" | "pointer" | "default"; textOverflow?: "ellipsis"; maxLength?: number; disabled?: boolean; type?: "text" | "email" | "password" | "number"; sx?: SX; onFocus?: (event: FocusEvent) => void; onBlur?: (event: FocusEvent) => void; onValueChange?: (value: string) => void; onKeyDown?: (event: KeyboardEvent) => void; onClick?: (event: MouseEvent) => void; onPaste?: ClipboardEventHandler; role?: AriaRole; /** * AutoFocus can cause accessibility issues when used, especially in forms. * https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_concerns */ autoFocus?: boolean; "data-tag"?: string; } interface Padding { input?: PaddingInline | PaddingLeftRight; adornment?: { inline: ThemeKeys<"space">; }; } interface PaddingInline { inline: ThemeKeys<"space">; left?: never; right?: never; } interface PaddingLeftRight { left?: ThemeKeys<"space">; right?: ThemeKeys<"space">; inline?: never; } export declare const BaseInput: (props: BaseInputProps & import("react").RefAttributes) => import("react").ReactElement> | null; export {};