import * as Redis from 'ioredis'; import Raw, { RawType } from './Raw'; import Reference, { ReferenceType } from './Reference'; export default class Rejects { readonly client: Redis.Redis; generateID: () => string; constructor(client: Redis.Redis); delete(key: string): Promise; upsert(key: string, obj: object, pipeline?: Redis.Pipeline): PromiseLike<[Error | null, 'OK'][]>; protected _upsert(rootKey: string, obj: object, opts: { pipeline: Redis.Pipeline; seen: any[]; }): Redis.Pipeline; set(key: string, obj: object, pipeline?: Redis.Pipeline): Promise<[Error | null, 'OK'][]>; get(key: string, opts?: { type?: ReferenceType; depth?: number; }): Promise; protected _get(rootKey: string, { type, depth, currentDepth }?: { type?: ReferenceType; depth?: number; currentDepth?: number; }): Promise; incr(key: string, amt?: number): PromiseLike; keys(key: string): PromiseLike; size(key: string): PromiseLike; } export { Raw, RawType, Reference, ReferenceType, Rejects, };