import { Etcd3, type IOptions } from 'etcd3'; import { type KernelState, type KernelStateChange, type KernelStateEntry, type KernelStateLease, type KernelStatePrefixWatchObserver, type PutOptions } from '@xemahq/contracts/kernel-state'; export interface EtcdKernelStateOptions { endpoints: string[]; auth?: { username: string; password: string; }; grpcOptions?: IOptions['grpcOptions']; client?: Etcd3; keyspacePrefix?: string; } export declare const unaryCallDeadline: NonNullable; export declare class EtcdKernelState implements KernelState { private readonly client; private readonly root; private readonly leases; private readonly leaseTtls; readonly backendDescription: string; constructor(opts: EtcdKernelStateOptions); get(key: string): Promise; list(prefix: string): Promise; put(key: string, value: unknown, opts?: PutOptions): Promise; delete(key: string): Promise; watch(prefix: string, cb: (events: KernelStateChange[]) => void): () => void; watchPrefix(prefix: string, observer: KernelStatePrefixWatchObserver): () => void; private createPrefixSubscription; acquireLease(key: string, ttlSeconds: number): Promise; renewLease(leaseId: string): Promise; lock(key: string, fn: () => T | Promise, options?: { readonly waitMs?: number; }): Promise; close(): void; private makePutBuilder; } //# sourceMappingURL=etcd-kernel-state.d.ts.map