import type { ConsumerCheckpoint } from "../types/index.js"; export interface ICheckpointStore { initialize(): Promise; get(group: string, partition: number): ConsumerCheckpoint | undefined; commit(checkpoint: ConsumerCheckpoint): Promise; reset(group: string, partition: number, timestamp?: number): Promise; getForGroup(group: string): ConsumerCheckpoint[]; initCheckpoints(group: string, partitionCount: number, timestamp?: number): Promise; } export declare class CheckpointStore implements ICheckpointStore { private filePath; private cache; private dirty; private authorized; constructor(filePath?: string, authToken?: symbol); /** Create an authorized CheckpointStore instance for the infrastructure layer. */ static createAuthorized(filePath?: string): CheckpointStore; protected ensureAuthorized(): void; initialize(): Promise; private key; loadAll(): Promise; save(): Promise; get(group: string, partition: number): ConsumerCheckpoint | undefined; commit(checkpoint: ConsumerCheckpoint): Promise; reset(group: string, partition: number, timestamp?: number): Promise; getForGroup(group: string): ConsumerCheckpoint[]; initCheckpoints(group: string, partitionCount: number, timestamp?: number): Promise; } export declare class InMemoryCheckpointStore implements ICheckpointStore { initialize(): Promise; private checkpoints; get(group: string, partition: number): ConsumerCheckpoint | undefined; commit(checkpoint: ConsumerCheckpoint): Promise; reset(group: string, partition: number, timestamp?: number): Promise; getForGroup(group: string): ConsumerCheckpoint[]; initCheckpoints(group: string, partitionCount: number, timestamp?: number): Promise; }