mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
21 lines • 724 B
TypeScript
export declare class ValidationError extends Error {
constructor(message: string);
}
export declare abstract class BaseValidator {
/**
* Validate content for a specific MIME type.
*
* @param content The content to validate
* @param mimeType The detected MIME type
* @throws ValidationError If content is invalid
*/
abstract validate(content: string | Uint8Array, mimeType: string): void;
/**
* Check if this validator can handle the given MIME type.
*
* @param mimeType The MIME type to check
* @returns True if this validator can handle the MIME type
*/
abstract canValidate(mimeType: string): boolean;
}
//# sourceMappingURL=BaseValidator.d.ts.map