export = DocumentFrame; /** * @file Document Frame * @license Apache Version 2 */ declare function DocumentFrame(client: any, config: any): void; declare class DocumentFrame { /** * @file Document Frame * @license Apache Version 2 */ constructor(client: any, config: any); client: any; config: any; load_schema: boolean; options(opts: any): DocumentFrame; db(dburl: any): DocumentFrame; /** * @param {String} url - loads the document frame from the document API in frame form * - loads the frame encapsulates more meta-data in the json and reduces the * number of api calls we need to make * @returns {Promise} */ loadDocument(url: string, encoding: any): Promise; loadSchema(cls: any, dbURL: any): any; /** * @param {String} url - loads the document frame along with its class frame * @param {String} [cls] - optional class id of the document - if absent class frames * will be loaded from the document class once it is loaded * @returns {Promise} * - loads a document frame and it's class frame in unison */ loadComplete(url: string, cls?: string): Promise; loadJSON(json: any, type: any): any; loadData(jsonld: any, cls: any, classframes: any): void; document: ObjectFrame; load(classframes: any, doc: any): void; loadSchemaFrames(classframes: any, cls: any): void; filterFrame(loadRenderer: any): void; setErrors(errors: any, frameconf: any): void; clearErrors(frameconf: any): void; applyRules(doc: any, config: any, mymatch: any): void; } import ObjectFrame = require("./objectFrame");