import { WidgetContext } from './widget.context'; import { FormState } from './form.state'; /** * Parses a json schema and generates a context tree. * * @author Wael Jammal */ export declare class SchemaParser { protected state: FormState; constructor(state: FormState); /** * Parse the given schema. * * @param schemaPart Json Schema * @param model Initial model * @param emit True to emit a change event * @param rootPath Allows overriding the root path (default $) * @param pathPrefix Allows post prefixing paths something.? * @param pathPostfix Allows post fixing paths .0, .1 etc. * @param update True to allow model updates * @param parentCtx */ parse(schemaPart: any, model?: any, emit?: boolean, pathPrefix?: any, pathPostfix?: any, rootPath?: string, update?: boolean, parentCtx?: WidgetContext): Promise>; /** * Recursively find all widget paths. * * @param root Context to start at * @param path Needle to find * @param paths Paths cache * @param exact True if match should be exact */ private findClosestMatch; /** * Recursively find all widget paths. * * @param ctx Context to start at * @param paths Paths cache * @param exact True if match should be exact * @param skipRoot True to skip the root context */ private findClosestMatchRecursive; /** * Finds the closest matching path. * * @param a Array of paths * @param b Path to match on */ private closestMatch; /** * Finds a context entry with an exact match for a path. * * @param a Entries to search * @param b Needle */ private exactMatch; }