import { type MiddlewarePromise } from '@akala/core'; import { Container, Metadata } from '../index.browser.js'; import { type Command } from '../metadata/command.js'; import { type ICommandProcessor, type StructuredParameters } from '../model/processor.js'; import { type ErrorObject, type SchemaObject } from 'ajv'; export interface SchemaConfiguration extends Metadata.Configuration { $defs: Record; resultSchema?: SchemaObject; } export declare class SchemaValidationError extends Error { constructor(errors: ErrorObject[]); } export declare class SchemaValidator implements ICommandProcessor { private options; readonly name = "schema"; constructor(options?: Partial<{ runWhenNoSchema: boolean; }>); static readonly notRefTypes: string[]; handle(origin: Container, cmd: Command, param: StructuredParameters): MiddlewarePromise; }