import type { SendResult } from "./conversation-manager.js"; import { type RuntimeParticipantConversationSubject } from "./services-client/index.js"; export interface DisclosedPeer { kind: "node" | "session"; nodeAddress?: string; nodeHandle?: string; nickname?: string; hostLabel?: string; } export interface DisclosedConversation { conversationRef: string; replyRef: number; selfParticipantRef: string; lastActivityAt: string; peer: DisclosedPeer; } export interface PendingContinuation { sendRequestId: string; conversationRef?: string; addressedPartyRef?: string; createdAt: string; } export declare function defaultContinuityPath(accountId: string): string; export declare function credentialFingerprint(runtimeKey: string): string; export declare class ContinuityStore { private readonly path; private readonly credential; private file; private warnedUnreadable; private warnedUnwritable; constructor(path: string, credential: string); private emptyFile; load(): Promise; conversationByReplyRef(replyRef: number): DisclosedConversation | undefined; private floorNextReplyRef; conversationsWith(nodeAddress: string): DisclosedConversation[]; remember(entry: Omit): Promise; touch(conversationRef: string): Promise; recordPending(pending: PendingContinuation): Promise; pendingCount(): number; settlePending(sendRequestId: string): Promise; private prune; private persist; } export interface ServicesContinuationOptions { apiHost: string; runtimeKey: string; store: ContinuityStore; fetch?: typeof fetch; } export declare class ServicesContinuation { private readonly clientConfig; private readonly runtimeKey; private readonly store; constructor(options: ServicesContinuationOptions); load(): Promise; remember(input: { subject: RuntimeParticipantConversationSubject; messageRef: string; }): Promise; openConversationsWith(nodeAddress: string): DisclosedConversation[]; conversationByReplyRef(replyRef: number): DisclosedConversation | undefined; replyTo(replyRef: number, content: string): Promise; } //# sourceMappingURL=services-continuation.d.ts.map