import { Resource } from './Resource.ts';
import type { Context } from './ResourceInterface.ts';
/**
 * ErrorResource is a Resource that throws an error on any request, communicating to the client when attempts are made
 * to access endpoints/resources that had an internal error in their configuration or setup. This helps ensure that
 * if there is a problem with a resource, it is immediately apparent and can be fixed.
 */
export declare class ErrorResource implements Resource {
    error: Error;
    constructor(error: Error);
    isError: boolean;
    allowRead(): never;
    allowUpdate(): never;
    allowCreate(): never;
    allowDelete(): never;
    getId(): never;
    getContext(): Context;
    get(): never;
    post(): never;
    put(): never;
    delete(): never;
    connect(): never;
    getResource(): this;
    publish(): never;
    subscribe(): never;
}
