/** Thrown when a malformed JSON:API document is encountered */ export declare class SchemaError extends Error { constructor(message?: string); } /** * Implements some simple schema checks on objects * @internal */ export declare class SchemaChecker { private readonly obj; private readonly name; /** Factory function creating a new SchemaChecker */ static fromData(data: object, name: string): SchemaChecker; constructor(obj: object, name: string); /** * check that the given object is a single JSON object */ singleObject(): this; /** * check that the object is a JSON array */ array(): this; /** * check that the object has all of the given members */ has(members: string[]): this; /** * check that the object has at least one of the given members */ atLeastOneOf(members: string[]): this; /** * check that the object has no other members than the given allowed members */ allowedMembers(members: string[]): this; }