import { Instance, InstanceAttributes, Relationship } from '../module.js'; export declare class ResolverAuthInfo { userId: string; readForUpdate: boolean; readForDelete: boolean; constructor(userId: string, readForUpdate?: boolean, readForDelete?: boolean); } export declare class Resolver { protected authInfo: ResolverAuthInfo; protected userData: any; protected name: string; static Default: Resolver; setAuthInfo(authInfo: ResolverAuthInfo): Resolver; setUserData(userData: any): Resolver; getUserData(): any; getName(): string; private notImpl; onSetPath(moduleName: string, entryName: string): any; createInstance(inst: Instance): Promise; upsertInstance(inst: Instance): Promise; /** * @param {Instance} inst - an Instance with query and update attributes * @param {InstanceAttributes} newAttrs - updated attributes to set in instance */ updateInstance(inst: Instance, newAttrs: InstanceAttributes): Promise; /** * @param {Instance} inst - an Instance with query attributes * @param {boolean} queryAll - if this flag is set, fetch all instances */ queryInstances(inst: Instance, queryAll: boolean): Promise; /** * Return all instances under the given parent-path. * @param {string} parentPath - path of the parent with the relevant relationship name as the last component * @param {Instance} inst - child Instance with query attributes */ queryChildInstances(parentPath: string, inst: Instance): Promise; /** * Return all instances connected to connectedInstance via the given between-relationship * @param relationship Between relationship * @param connectedInstance The instance to traveres the relationship from * @param inst Target instance with query attributes */ queryConnectedInstances(relationship: Relationship, connectedInstance: Instance, inst: Instance): Promise; /** * @param {Instance} inst - an Instance with query attributes */ deleteInstance(inst: Instance | Instance[], purge: boolean): Promise; /** * Connect instances via a between relationship * @param node1 The main node to connect * @param otherNodeOrNodes Nodes to be connected to node1 * @param relEntry Details of the repationship */ connectInstances(node1: Instance, otherNodeOrNodes: Instance | Instance[], relEntry: Relationship, orUpdate: boolean): Promise; startTransaction(): Promise; commitTransaction(txnId: string): Promise; rollbackTransaction(txtIn: string): Promise; } //# sourceMappingURL=interface.d.ts.map