import { VariantProps } from "class-variance-authority";
import { InputHTMLAttributes, PropsWithChildren } from "react";
declare const textfield: (props?: ({
    size?: "small" | "medium" | null | undefined;
    state?: "invalid" | "valid" | null | undefined;
    hasLeadingElement?: boolean | null | undefined;
    hasTrailingElement?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
/**
 * @deprecated Use InputFieldProps from '@raystack/apsara/v1' instead.
 */
export type TextfieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & PropsWithChildren<VariantProps<typeof textfield>> & {
    leading?: React.ReactElement;
    trailing?: React.ReactElement;
    iconClass?: {
        leadingIcon?: string;
        trailingIcon?: string;
    };
};
/**
 * @deprecated Use InputField from '@raystack/apsara/v1' instead.
 */
export declare const TextField: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & VariantProps<(props?: ({
    size?: "small" | "medium" | null | undefined;
    state?: "invalid" | "valid" | null | undefined;
    hasLeadingElement?: boolean | null | undefined;
    hasTrailingElement?: boolean | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
    children?: import("react").ReactNode;
} & {
    leading?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
    trailing?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
    iconClass?: {
        leadingIcon?: string | undefined;
        trailingIcon?: string | undefined;
    } | undefined;
} & import("react").RefAttributes<HTMLInputElement>>;
export {};
//# sourceMappingURL=textfield.d.ts.map