import type Node from './node'; import type { KVStorageProvider } from './kv'; import type { VoteStaple } from './vote'; interface BootstrapFullConfig { period: number; timeout?: number; kv: KVStorageProvider | null; callback?: (voteStaple: VoteStaple) => Promise; } export type BootstrapConfig = Partial; type NodeLike = Pick & Partial>; export declare class BootstrapClient { #private; timeout: number; static isInstance: (obj: any, strict?: boolean) => obj is BootstrapClient; constructor(node: NodeLike, config?: BootstrapConfig); resetKV(): Promise; stats(): Promise<{ lastUpdate: Date | undefined; completeCount: number; }>; update(limit?: number): Promise<{ complete: boolean; }>; stop(): Promise; } export default BootstrapClient;