import { Dictionary } from './common'; import { DHTOp } from './dht-op'; import { Entry } from './entry'; import { Header } from './header'; import { NetworkMessage } from './network'; import { Conductor } from './conductor'; export declare const AGENT_HEADERS = "AGENT_HEADERS"; export declare const CRUDStatus = "CRUDStatus"; export declare const REPLACES = "REPLACES"; export declare const REPLACED_BY = "REPLACED_BY"; export declare const DELETED_BY = "DELETED_BY"; export declare const HEADERS = "HEADERS"; export declare const LINKS_TO = "LINKS_TO"; export interface EntryMetadata { CRUDStatus: string; REPLACES: string | undefined; REPLACED_BY: string | undefined; DELETED_BY: string | undefined; HEADERS: Dictionary
; LINKS_TO: Array<{ target: string; tag: string; type: string; timestamp: string; }>; AGENT_HEADERS?: Dictionary
; } export interface CASMetadata { CRUDStatus: string; REPLACES: string | undefined; REPLACED_BY: string[]; DELETED_BY: string | undefined; HEADERS: string[]; LINKS_TO: Array<{ target: string; tag: string; type: string; timestamp: number; }>; AGENT_HEADERS?: string[]; } export interface CellContents { dna: string; agentId: string; redundancyFactor: number; peers: string[]; sourceChain: string[]; CAS: Dictionary; CASMeta: Dictionary; DHTOpTransforms: Dictionary; } export declare class Cell { conductor: Conductor; dna: string; agentId: string; redundancyFactor: number; peers: string[]; sourceChain: string[]; CAS: Dictionary; CASMeta: Dictionary; DHTOpTransforms: Dictionary; constructor(conductor: Conductor, dna: string, agentId: string, redundancyFactor: number, peers: string[]); static from(conductor: Conductor, contents: CellContents): Cell; toContents(): CellContents; init(): Promise; createEntry(entry: Entry, replaces: string | undefined): Promise; publishEntry(entry: Entry, header: Header): Promise; republish(): void; fastPush(dhtOps: DHTOp[]): Promise; getEntry(hash: string): Entry | undefined; getDHTShard(): Dictionary; getEntryMetadata(hash: string): EntryMetadata | undefined; getNeighbors(): string[]; getNPeersClosestTo(n: number, hash: string): string[]; newHeader(entryId: string, replacedEntryAddress: string | undefined): Header; createHeader(entryId: string, replacedEntryAddress: string | undefined): Promise
; initDHTShardForEntry(entryHash: string): void; updateDHTShard(): void; /** Network */ handleNetworkMessage(fromAgentId: string, message: NetworkMessage): any; joinNetwork(): void; handlePublishRequest(hash: string, dhtOp: DHTOp): void; }