/** * @file * @author Ian Johnson * @copyright 2018 Ian Johnson * @license MIT */ export * from './schema'; import { JSONRecipe } from './schema'; /** * Checks whether the given object is a valid JSON Recipe. This function does * not return any error information (for that, see {@link validate}), and is * best used as a simple type guard. * * @param data the data to validate as a JSON Recipe * @returns whether the given object is a valid JSON Recipe */ export declare function isValid(data: any): data is JSONRecipe; /** * Checks whether the given object is a valid JSON Recipe, returning validation * errors on failure. * * @param data the object to check * @returns any errors encountered during validation, or an empty array if valid */ export declare function validate(data: any): string[];