import * as React from "react";
import { FormContext } from "../LajiForm";
export type PanelError = {
    label: string;
    error: Error | string;
    id?: string;
    getId: () => string;
    extra: React.ReactNode[] | null;
    disabled?: boolean;
};
type Props = {
    errors: PanelError[];
    title: string;
    clickHandler: (id?: string) => void;
    poppedToggle: React.MouseEventHandler;
    popped: boolean;
    showToggle?: boolean;
    classNames?: string;
    footer?: React.ReactNode;
    formContext: FormContext;
};
type State = {
    expanded: boolean;
};
export declare class ErrorPanel extends React.Component<Props, State> {
    static contextType: React.Context<import("../../ReactContext").ContextProps>;
    constructor(props: Props);
    expand: () => void;
    collapseToggle: () => void;
    render(): JSX.Element | null;
}
export {};
