import { ButtonProps } from './Button.styles'; import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react'; export interface GlareButtonProps extends ButtonProps, Omit, 'children' | 'onClick' | 'disabled' | 'className'> { children: ReactNode; onClick: ComponentPropsWithoutRef<'button'>['onClick']; /** Inline button (default). Set `false` to center it on the top edge of its nearest positioned parent instead. */ nowrap?: boolean; disabled?: boolean; /** Stretches the button and its glare to the width of the container. */ fullWidth?: boolean; disabledColor?: string; /** DOM id of the button; also the default `data-cy`. */ buttonId?: string; className?: string; backgroundColor?: string; textColor?: string; borderColor?: string; glareColorDark?: string; glareColorLight?: string; /** Seconds for one glare sweep. */ animationDuration?: number; 'data-cy'?: string; /** Render as another element or component, e.g. a router `Link` (then pass its props such as `to`). */ as?: ElementType; to?: string; href?: string; target?: string; rel?: string; } export declare const GlareButton: ({ children, nowrap, onClick, disabled, fullWidth, disabledColor, buttonId, className, backgroundColor, textColor, borderColor, glareColorDark, glareColorLight, animationDuration, ...props }: GlareButtonProps) => import("react/jsx-runtime").JSX.Element; export default GlareButton;