import * as LRUCache from "lru-cache"; import GlitchDB from "./GlitchDB"; export interface GlitchPartition { exists: (key: string, version?: number) => Promise; get: (key: string) => Promise; keys: () => Promise; data: () => Promise<{ [key: string]: Type; }>; set: (key: string, value: Type) => Promise; delete: (key: string) => Promise; createJoin: (db: string, joinName: string, leftKey: string, rightKey?: string) => void; getWithJoins: (key: string) => Promise; } export default class GlitchPartitionImpl implements GlitchPartition { #private; protected cache: LRUCache; constructor(master: GlitchDB, localDir: string, cacheSize?: number, indices?: string[]); protected init(): Promise; keys(): Promise; protected getKeyPath(key: string): string; protected resolveKey(key: string): string; exists(key: string): Promise; get(key: string): Promise; data(): Promise<{ [key: string]: Type; }>; protected setIndices(key: string, value: Type): Promise; protected deleteIndices(value: Type): Promise; set(key: string, value: Type): Promise; delete(key: string): Promise; createJoin(db: string, joinName: string, leftKey: string, rightKey?: string): void; getWithJoins(key: string): Promise; } //# sourceMappingURL=GlitchPartition.d.ts.map