import MemberDef from './memberdef' ; import { ParserTreeValue } from '../parser/index' ; import KeyValueCollection from '../header/index' ; /**
 * Defines the SchemaValidator interface.
 */ export default interface TypeDef { getType ( ) : string ; /**
     * Validates and parses the value as per the memberDef and returns the results
     * specifying whether the value adhers to the schema or not!
     */ parse ( value , memberDef , vars ? ) : any ; /**
     * Validates and loads the value as per the memberDef and returns the results
     * specifying whether the value adhers to the schema or not!
     */ load ( value , memberDef ) : any ; [ index ] : any ; }