import { BoxProps } from "@specimen/foundation"; interface NoMessageProps { state?: "normal" | "positive"; message?: never; disabled?: boolean; } interface MessageProps { state: "negative" | "cautionary"; message: string; disabled?: never; } interface StaticProps extends BoxProps { label?: string; hint?: string; value?: string; handleChange?: (value: string) => void; } declare type Props = StaticProps & (MessageProps | NoMessageProps); declare const TextField: ({ label, hint, state, message, disabled, ...props }: Props) => import("@emotion/react/jsx-runtime").JSX.Element; export default TextField;