import { ElementRef } from '@angular/core';
import { ReadableError } from '@dereekb/util';
import { AbstractPopoverDirective } from '../interaction/popover/abstract.popover.directive';
import { DbxPopoverKey } from '../interaction/popover/popover';
import { DbxPopoverService } from '../interaction/popover/popover.service';
import * as i0 from "@angular/core";
export declare const DEFAULT_ERROR_POPOVER_KEY = "error";
export interface DbxErrorPopoverConfig {
    readonly origin: ElementRef;
    readonly error: ReadableError;
}
export declare class DbxErrorPopoverComponent extends AbstractPopoverDirective<void, ReadableError> {
    readonly error: ReadableError;
    readonly code: string | undefined;
    static openPopover(popoverService: DbxPopoverService, { origin, error }: DbxErrorPopoverConfig, popoverKey?: DbxPopoverKey): import("ng-overlay-container").NgPopoverRef<import("../interaction").DbxPopoverComponentConfig<unknown, ReadableError, DbxErrorPopoverComponent>, unknown>;
    static ɵfac: i0.ɵɵFactoryDeclaration<DbxErrorPopoverComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<DbxErrorPopoverComponent, "ng-component", never, {}, {}, never, never, true, never>;
}
