import * as React from "react";
import { ButtonProps } from "../components";
import { FormContext } from "../LajiForm";
type Props = ButtonProps & {
    confirmStyle?: "browser";
    tooltip?: string;
    disabled?: boolean;
    readonly?: boolean;
    confirm?: boolean;
    confirmPlacement?: string;
    onClick: () => void;
    style?: React.CSSProperties;
    translations: FormContext["translations"];
    prompt: string;
    confirmButtonVariant?: string;
    confirmButtonText?: string;
    confirmButtonId?: string;
    cancelButtonId?: string;
};
type State = {
    show?: boolean;
};
export declare class ConfirmButton extends React.Component<Props, State> {
    static contextType: React.Context<import("../../ReactContext").ContextProps>;
    buttonRef: React.RefObject<any>;
    constructor(props: Props);
    onButtonKeyDown: ({ key }: React.KeyboardEvent) => void;
    onHideConfirm: () => void;
    onShowConfirm: (e: React.MouseEvent) => void;
    onCancelClick: (e: React.MouseEvent) => void;
    onConfirmedClick: (e?: React.KeyboardEvent | React.MouseEvent) => void;
    onClick: (e: React.MouseEvent) => void;
    setConfirmAutofocus: (elem?: React.ReactInstance) => void;
    render(): JSX.Element;
    renderConfirm: () => JSX.Element | null;
    getOverlayTarget: () => Element | Text | null;
    renderConfirmPopup(): JSX.Element;
    browserConfirm(): void;
}
export {};
