import { default as React, PropsWithChildren } from 'react'; interface ButtonComponent { (props: { as: C; } & UnstyledButtonPropsFor): React.ReactElement; (props: UnstyledButtonPropsFor<"button">): React.ReactElement; } type UnstyledButtonProps = PropsWithChildren<{ /** * Note that disabled attribute is not added to buttons, so that disabled buttons are discoverable by keyboard. * `aria-disabled` attribute is used to indicate button is disabled. * Event handlers are not passed to disabled buttons (onClick, onSubmit, etc.) */ disabled?: boolean; }>; export type UnstyledButtonPropsFor = UnstyledButtonProps & Omit, keyof UnstyledButtonProps | "as"> & { ref?: React.Ref>; }; /** * Unstyled button component. Can be disabled and optionally rendered as an anchor. * Intended to be wrapped with styles and exported as new button type - eg `IconButton` or `Button`. * * Not to be used externally. */ export declare const UnstyledButton: ButtonComponent; export {}; //# sourceMappingURL=UnstyledButton.d.ts.map