import React from 'react'; import { ButtonProps } from './Button.type'; import { PolymorphicRef } from '../../utils/Polymorphic'; import { StyledButtonProps } from './Button.style'; export declare function useButton(props: ButtonProps): { domRef: React.RefObject>; as: string | T; children: React.PropsWithoutRef>[string]; styledProps: StyledButtonProps; buttonProps: { disabled: boolean; } & Omit, "children" | "ref" | "prefix" | "color" | "width" | "as" | "shape" | "disabled" | "size" | "align" | "isLoading" | "suffix" | "variant" | "iconOnly">; isLoading: boolean; spinnerSize: number; prefix: React.ReactNode; suffix: React.ReactNode; };