import { OperationOutcome as OperationOutcomeR4B } from 'fhir/r4b';
import { OperationOutcome as OperationOutcomeR5 } from 'fhir/r5';
export declare class OystehrSdkError extends Error {
    code: number;
    constructor({ message, code, cause }: {
        message: string;
        code: number;
        cause?: unknown;
    });
    toString(): string;
    toJSON(): any;
}
export declare class OystehrFHIRError extends OystehrSdkError {
    cause: OperationOutcomeR4B | OperationOutcomeR5;
    constructor({ error, code }: {
        error: OperationOutcomeR4B | OperationOutcomeR5;
        code: number;
    });
    toJSON(): any;
}
