import { ConduitModule, ConduitSchema } from '../../classes/index.js'; import { DatabaseProviderDefinition, DropCollectionResponse, Schema } from '../../protoUtils/database.js'; import { ConduitSchemaExtension, Indexable, RawQuery, UntypedArray } from '../../interfaces/index.js'; import { Query } from '../../types/db.js'; import { FindOneOptions, FindManyOptions } from './types.js'; import { AuthzOptions, PopulateAuthzOptions } from '../../types/options.js'; export declare class DatabaseProvider extends ConduitModule { private readonly moduleName; constructor(moduleName: string, url: string, grpcToken?: string); getSchema(schemaName: string): Promise<{ name: string; fields: any; modelOptions: any; collectionName: string; fieldHash: string; }>; getSchemas(): Promise<{ name: string; fields: any; modelOptions: any; fieldHash: string; }[]>; deleteSchema(schemaName: string, deleteData: boolean): Promise; createSchemaFromAdapter(schema: ConduitSchema): Promise; setSchemaExtension(extension: ConduitSchemaExtension): Promise; processQuery(query: Query): string; findOne(schemaName: string, query: Query, select?: string, populate?: string | string[], userId?: string, scope?: string): Promise; findOne(schemaName: string, query: Query, options?: FindOneOptions): Promise; findMany(schemaName: string, query: Query, select?: string, skip?: number, limit?: number, sort?: { [field: string]: -1 | 1; } | string[] | string, populate?: string | string[], userId?: string, scope?: string): Promise; findMany(schemaName: string, query: Query, options?: FindManyOptions): Promise; create(schemaName: string, query: Query, userId?: string, scope?: string): Promise; create(schemaName: string, query: Query, options?: AuthzOptions): Promise; createMany(schemaName: string, query: Query[], userId?: string, scope?: string): Promise; createMany(schemaName: string, query: Query[], options?: AuthzOptions): Promise; findByIdAndUpdate(schemaName: string, id: string, document: Query, populate?: string | string[], userId?: string, scope?: string): Promise; findByIdAndUpdate(schemaName: string, id: string, document: Query, options?: PopulateAuthzOptions): Promise; findByIdAndReplace(schemaName: string, id: string, document: Query, populate?: string | string[], userId?: string, scope?: string): Promise; findByIdAndReplace(schemaName: string, id: string, document: Query, options?: PopulateAuthzOptions): Promise; updateMany(schemaName: string, filterQuery: Query, query: Query, populate?: string | string[], userId?: string, scope?: string): Promise; updateMany(schemaName: string, filterQuery: Query, query: Query, options?: PopulateAuthzOptions): Promise; updateOne(schemaName: string, filterQuery: Query, query: Query, populate?: string | string[], userId?: string, scope?: string): Promise; updateOne(schemaName: string, filterQuery: Query, query: Query, options?: PopulateAuthzOptions): Promise; replaceOne(schemaName: string, filterQuery: Query, query: Query, populate?: string | string[], userId?: string, scope?: string): Promise; replaceOne(schemaName: string, filterQuery: Query, query: Query, options?: PopulateAuthzOptions): Promise; deleteOne(schemaName: string, query: Query, userId?: string, scope?: string): Promise; deleteOne(schemaName: string, query: Query, options?: AuthzOptions): Promise; deleteMany(schemaName: string, query: Query, userId?: string, scope?: string): Promise; deleteMany(schemaName: string, query: Query, options?: AuthzOptions): Promise; countDocuments(schemaName: string, query: Query, userId?: string, scope?: string): Promise; countDocuments(schemaName: string, query: Query, options?: AuthzOptions): Promise; rawQuery(schemaName: string, query: RawQuery): Promise; createView(schemaName: string, viewName: string, joinedSchemas: string[], query: { mongoQuery?: Indexable; sqlQuery?: string; }): Promise; deleteView(viewName: string): Promise; columnExistence(schemaName: string, columns: string[]): Promise; migrate(schemaName: string): Promise; getDatabaseType(): Promise; generateId(): Promise; private constructSortObj; }