/** * @template {AnyCollection} CollectionType */ export class BaseCollection { /** * @param {import('../cryptr').Cryptr} cryptr * @param {string} url * @param {function} transform */ constructor(cryptr: import('../cryptr').Cryptr, url: string, transform?: Function); cryptr: import("../cryptr").Cryptr; url: string; transform: Function; request(url: string, method: "GET" | "POST" | "PUT" | "DELETE", jsonBody: any, _headers: any): Promise; /** * @param {CollectionType['create']} data * @returns {Promise} */ create(data: CollectionType['create']): Promise; /** * @param {string} id * @param {Object=} params * @returns {Promise} */ get(id: string, params?: { [x: string]: string; } | undefined): Promise; /** * @param {string} id * @param {CollectionType['update']} data * @returns {Promise} */ update(id: string, data: CollectionType['update']): Promise; delete(id: any): Promise; /** * @returns {Promise} */ list(): Promise; }