import { RxCollection, RxDocument } from "rxdb"; import { NarwhalSchema } from "./NarwhalSchema"; export declare class ProxiedCollection { schema: NarwhalSchema; static_methods: { [key: string]: (any: any) => any; }; init(schema: NarwhalSchema, ...args: any[]): void; } export declare class ValidationError extends Error { } export interface IRxDocumentType { [key: string]: any; } export declare class ConcreteProxiedCollection extends ProxiedCollection { collection: RxCollection; private userManager; init(schema: NarwhalSchema, collection: RxCollection): void; initializeDefaults(original_data: RxDocument, stripExtra?: boolean): Promise; validate(data: IRxDocumentType): void; create(data?: any): Promise>; insert(data: any): Promise>; get objects(): import("rxdb").RxQuery[]>; }