import { CID } from 'multiformats/cid'; import { Observable } from 'rxjs'; import { AnchorProof, AnchorService, AnchorServiceResponse, AnchorValidator, AnchorCommit } from '@dustil/common'; import { Ceramic } from '../../ceramic.js'; import { StreamID } from '@dustil/streamid'; import type { DagJWS } from 'dids'; declare class Candidate { readonly cid: CID; readonly streamId?: StreamID; readonly log?: CID[]; constructor(cid: CID, streamId?: StreamID, log?: CID[]); get key(): string; } interface InMemoryAnchorConfig { anchorDelay?: number; anchorOnRequest?: boolean; verifySignatures?: boolean; } export declare class InMemoryAnchorService implements AnchorService, AnchorValidator { #private; constructor(_config: InMemoryAnchorConfig); init(): Promise; getSupportedChains(): Promise>; anchor(): Promise; failPendingAnchors(): Promise; startProcessingPendingAnchors(): Promise; _findCandidates(): Promise; _groupCandidatesByStreamId(candidates: Candidate[]): Promise>; _selectValidCandidates(groupedCandidates: Record): Candidate[]; _failCandidate(candidate: Candidate, message?: string): void; _startProcessingCandidate(candidate: Candidate, message?: string): void; _loadCommitHistory(commitId: CID, streamId: StreamID): Promise; set ceramic(ceramic: Ceramic); get url(): string; requestAnchor(streamId: StreamID, tip: CID): Observable; pollForAnchorResponse(streamId: StreamID, tip: CID): Observable; _storeRecord(record: Record): Promise; _publishAnchorCommit(streamId: StreamID, commit: AnchorCommit): Promise; _process(leaf: Candidate): Promise; verifySignedCommit(envelope: DagJWS): Promise; validateChainInclusion(proof: AnchorProof): Promise; } export {}; //# sourceMappingURL=in-memory-anchor-service.d.ts.map