import { UnitemporalVersion } from "./GlitchUnitemporalPartition"; import GlitchPartitionImpl, { GlitchPartition } from "./GlitchPartition"; import GlitchDB from "."; interface BitemporalVersion extends UnitemporalVersion { validFrom: number; validTo: number; } export interface BitemporallyVersionedData extends BitemporalVersion { data: Type; } export interface GlitchBitemporalPartition extends GlitchPartition { get: (key: string, validAsOf?: number) => Promise; set: (key: string, value: Type, validFrom?: number, validTo?: number, metadata?: { [key: string]: string; }) => Promise; getVersion: (key: string, validAsOf?: number) => Promise>; getAllVersions: (key: string) => Promise[]>; } export default class GlitchBiTemporalPartitionImpl extends GlitchPartitionImpl implements GlitchBitemporalPartition { #private; constructor(master: GlitchDB, localDir: string, cacheSize?: number, indices?: string[]); get(key: string, validAsOf?: number): Promise; getVersion(key: string, validAsOf?: number): Promise>; getAllVersions(key: string): Promise[]>; set(key: string, value: Type, validFrom?: number, validTo?: number, metadata?: { [key: string]: string; }): Promise; } export {}; //# sourceMappingURL=GlitchBitemporalPartition.d.ts.map