import type { CommonErrorProperties } from './base-error';
import { BaseError } from './base-error';
export interface DatabaseErrorParent extends Error, Pick<CommonErrorProperties, 'sql'> {
    /** The parameters for the sql that triggered the error */
    readonly parameters?: object;
}
export interface DatabaseErrorSubclassOptions {
    cause?: DatabaseErrorParent;
    /**
     * @deprecated use {@link DatabaseErrorSubclassOptions.cause}
     */
    parent?: DatabaseErrorParent;
    message?: string;
}
/**
 * A base class for all database-related errors.
 */
export declare class DatabaseError extends BaseError implements DatabaseErrorParent, CommonErrorProperties {
    sql: string;
    parameters: object;
    cause: DatabaseErrorParent;
    /**
     * @param parent The database-specific error which triggered this one
     */
    constructor(parent: DatabaseErrorParent);
}
