import { ValidateFunction } from "ajv";
export type AjvErr = {
    dataPath?: string;
    instancePath?: string;
    message?: string;
    params?: any;
};
export declare class STSFhirValidator {
    #private;
    private static instance;
    static getInstance(): STSFhirValidator;
    private constructor();
    get bundleValidator(): ValidateFunction<unknown>;
    ToOperationOutcome(errors: AjvErr[] | null | undefined, code?: string, diagnosticsPrefix?: string): {
        resourceType: string;
        issue: {
            expression?: string[] | undefined;
            severity: string;
            code: string;
            diagnostics: string;
            details: {
                text: string;
            } | undefined;
        }[];
    } | {
        resourceType: string;
        issue: {
            severity: string;
            code: string | undefined;
            diagnostics: string | undefined;
        }[];
    };
    LoadValidator(resourceType: string): void;
    ValidateResource(res: any): {
        ok: true;
    } | {
        ok: false;
        outcome: any;
    };
}
//# sourceMappingURL=stsfhirvalidator.d.ts.map