import type { AnchorPublishPreparation, PublishedAnchorRecord, RpcInternalCommunityRecordAfterFirstUpdateType, RpcInternalCommunityRecordBeforeFirstUpdateType, RpcLocalCommunityLocalProps, RpcLocalCommunityUpdateResultType, CommunityEditOptions, CommunityExportRecord, CommunityIpfsType, CommunityStartedState, ExportCommunityUserOptions, ExportCommunityModLogsOptions } from "./types.js"; import type { CommentModerationTableRow } from "../publications/comment-moderation/types.js"; import { RpcRemoteCommunity } from "./rpc-remote-community.js"; import { PKC } from "../pkc/pkc.js"; export declare class RpcLocalCommunity extends RpcRemoteCommunity { started: boolean; startedState: CommunityStartedState; signer: RpcLocalCommunityLocalProps["signer"]; anchor?: RpcLocalCommunityLocalProps["anchor"]; anchorRecordSequence?: RpcLocalCommunityLocalProps["anchorRecordSequence"]; settings: RpcLocalCommunityLocalProps["settings"]; editable: Pick; challenges: CommunityIpfsType["challenges"]; encryption: CommunityIpfsType["encryption"]; createdAt: CommunityIpfsType["createdAt"]; protocolVersion: CommunityIpfsType["protocolVersion"]; raw: { communityIpfs?: CommunityIpfsType; runtimeFieldsFromRpc?: Record; localCommunity?: RpcLocalCommunityUpdateResultType; }; private _startRpcSubscriptionId?; _usingDefaultChallenge: RpcLocalCommunityLocalProps["_usingDefaultChallenge"]; private _exportsSubscriptionId?; private _exportsCache; private _exportSignalDetachers; constructor(pkc: PKC); toJSONInternalRpcAfterFirstUpdate(): RpcInternalCommunityRecordAfterFirstUpdateType; toJSONInternalRpcBeforeFirstUpdate(): RpcInternalCommunityRecordBeforeFirstUpdateType; private _replayAnchorIntoIpnsHops; initRpcInternalCommunityBeforeFirstUpdateNoMerge(newProps: RpcInternalCommunityRecordBeforeFirstUpdateType): void; initRpcInternalCommunityAfterFirstUpdateNoMerge(newProps: RpcInternalCommunityRecordAfterFirstUpdateType): void; protected _updateRpcClientStateFromStartedState(startedState: RpcLocalCommunity["startedState"]): void; protected _processUpdateEventFromRpcUpdate(args: any): void; private _handleRpcUpdateEventFromStart; private _handleRpcStartedStateChangeEvent; private _handleRpcChallengeRequestEvent; private _handleRpcChallengeEvent; private _handleRpcChallengeAnswerEvent; private _handleRpcChallengeVerificationEvent; start(): Promise; private _cleanUpRpcConnection; stopWithoutRpcCall(): Promise; prepareAnchorPublish(): Promise; publishAnchorRecord(recordBytes: Uint8Array): Promise; stop(): Promise; edit(newCommunityOptions: CommunityEditOptions): Promise; update(): Promise; get exports(): CommunityExportRecord[]; export(options?: ExportCommunityUserOptions): Promise<{ exportId: string; }>; exportCommunityModLogs(opts?: ExportCommunityModLogsOptions): Promise<{ moderations: CommentModerationTableRow[]; }>; _attachExportsSubscription(): Promise; private _absorbExportRecords; delete(): Promise; }