1 | import { RootSchemaTreeNode } from './schema-tree';
|
2 | import { JsonSchemaErrorBase } from './error';
|
3 | import './mimetypes';
|
4 | export declare class InvalidJsonPath extends JsonSchemaErrorBase {
|
5 | }
|
6 |
|
7 | export interface SchemaClass<JsonType> extends Object {
|
8 | $$root(): JsonType;
|
9 | $$get(path: string): any;
|
10 | $$set(path: string, value: any): void;
|
11 | $$alias(source: string, destination: string): boolean;
|
12 | $$dispose(): void;
|
13 | $$typeOf(path: string): string;
|
14 | $$defined(path: string): boolean;
|
15 | $$delete(path: string): void;
|
16 | $$schema(): RootSchemaTreeNode;
|
17 | $$serialize(mimetype?: string, ...args: any[]): string;
|
18 | }
|
19 | export interface SchemaClassFactoryReturn<T> {
|
20 | new (value: T, ...fallbacks: T[]): SchemaClass<T>;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | export declare function SchemaClassFactory<T>(schema: Object): SchemaClassFactoryReturn<T>;
|