import { AllHostiesQuery, HostieFragment, SubscribeHostieSubscription } from '../../generated-schemas/hostie-schema'; import { Db } from '../db'; import { Store } from '../store'; export declare type Hostie = Partial; export declare class HostieStore extends Store { protected db: Db; constructor(db: Db); /** * @param newHostie */ create(newHostie: { name: string; token: string; ownerId?: string; }): Promise; /** * delete * @param id */ delete(id: string): Promise; /** * update will only change the specified fields in documents it affects; * unspecified fields will be left untouched. * @param updateHostie */ update(id: string, props: Hostie): Promise; }