import { Connector, Pagination } from './types'; import * as firebase from 'firebase'; import { Field } from 'canner-graphql-utils/lib/schema/types'; export default class FirebaseConnector implements Connector { private database; private namespace?; private auth; constructor({ database, namespace, auth }: { database: firebase.database.Database; namespace?: string; auth?: () => Promise; }); prepare(): Promise; listResolveByUnique({ key, field, schema }: { key: string; field: { [key: string]: any; }; schema: Field; }): Promise; hasNextPage({ key, id }: { key: any; id: any; }): Promise; listResolveQuery({ key, where, order, pagination, schema }: { key: string; where?: any; order?: any; pagination?: Pagination; schema?: Field; }): Promise; resolveToOne({ from, to, id, schema }: { from: string; to: string; id: string; schema: Field; }): Promise; resolveToMany({ from, to, ids, pagination, schema }: { from: string; to: string; ids: [string]; pagination: Pagination; schema: Field; }): Promise; mapResolve(key: string, schema: Field): Promise; mapUpdate(key: string, payload: any, schema: Field): Promise; listCreate(key: string, payload: any, schema: Field): Promise; listUpdate(key: string, where: any, payload: any, schema: Field): Promise; listDelete(key: string, where: any): Promise; private anonymousLogin; private join; }