import type { Definition } from 'roosterjs-editor-types'; /** * Validate the given object with a type definition object * @param input The object to validate * @param def The type definition object used for validation * @returns True if the object passed the validation, otherwise false */ export default function validate(input: any, def: Definition): input is T;