import { CasterFn, ErrorReporter, RuleFn } from './types'; export declare const restrict: (caster: CasterFn, rules: RuleFn[]) => (value: unknown, context?: string, reportError?: ErrorReporter) => T;