import { ForwardRefComponent } from 'framer-motion';
import * as React from 'react';
export declare type ButtonVariant = 'primary' | 'secondary';
interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
    as?: ForwardRefComponent<HTMLButtonElement, any>;
    type?: 'button' | 'reset' | 'submit';
}
interface MainButtonProps extends BaseButtonProps {
    onlyIcon?: boolean;
    disabled?: boolean;
    destructive?: boolean;
    variant?: ButtonVariant;
    icon?: never;
    startIcon?: React.ReactNode;
    endIcon?: React.ReactNode;
    children: React.ReactNode;
}
interface IconButtonProps extends BaseButtonProps {
    onlyIcon: boolean;
    disabled?: boolean;
    destructive?: boolean;
    variant?: ButtonVariant;
    icon: React.ReactNode;
    startIcon?: never;
    endIcon?: never;
}
export declare type ButtonProps<T> = (MainButtonProps | IconButtonProps) & T;
export {};
