export = PluginRepository; declare class PluginRepository extends ObjectRepository { constructor(store: any, collection: any); collection: any; ObjectConstructor: ObjectConstructor; init(options: any): void; /** * Serializes the object before being persisted to database. * * @param {object} data - The object to serialize * @returns {object} */ serializeToDatabase(data: object): object; /** * @param {object} object * @param {object} [options] * @returns {Promise} */ create(object: object, options?: object): Promise; /** * @param {object} object * @param {object} [options] * @returns {Promise} */ createOrReplace(object: object, options?: object): Promise; /** * @param {object} object * @param {object} [options] * @returns {Promise} */ replace(object: object, options?: object): Promise; /** * @param {object} object * @param {object} [options] * @returns {Promise} */ update(object: object, options?: object): Promise; /** * If we load a user that does not exists, we have to resolve the promise with null * instead of throwing NotFoundError * * @param {string} documentId * @returns {Promise} */ load(documentId: string): Promise; /** * @param {string} documentId * @param {object} [options] * @returns {Promise} */ delete(documentId: string, options?: object): Promise; } import { ObjectRepository } from "../shared/ObjectRepository";