import type { PropsWithoutRef } from 'react'; import type { NoChildrenProp, WithAttributes } from '../../types'; export type AIButtonProps = WithAttributes<'button', NoChildrenProp & { /** * Controls the styling of the Button. * @default 'secondary' */ variant?: 'primary' | 'secondary'; /** The text content of the AIButton. */ label: string; } & ({ /** * Icon name. Set to null to render button without an icon. * @default 'polaris-solid' */ icon?: string; /** * Only display the icon. The label prop will be forwarded to a tooltip. * @default false */ iconOnly: true; } | { /** * Icon name. Set to null to render button without an icon. * @default 'polaris-solid' */ icon?: string | null; /** * Only display the icon. The label prop will be forwarded to a tooltip. * @default false */ iconOnly?: false; })>; export declare const StyledAIButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit & import("react").RefAttributes & import("../../types").ForwardProps, "ref"> & { ref?: ((instance: HTMLAnchorElement | HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject | null | undefined; }, never>> & string & Omit, keyof import("react").Component>; declare const _default: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; export default _default; //# sourceMappingURL=AIButton.d.ts.map