import { Component } from 'kdu'; import { ValidationContext } from './common'; declare type ValidationContextMapper = (ctx: ValidationContext) => Record; declare type ComponentLike = Component | { options: any; }; export declare function withValidation(component: ComponentLike, mapProps?: ValidationContextMapper): Component; export {};