import * as wasm from '../wasm.js'; import type { EvoSDK } from '../sdk.js'; /** * The moderation charters system contract (protocol version 14): who moderates a contract * that declares elected moderation, the proposals and join requests behind it, and the * requests members send the leader. Every read is a proved document query. */ export declare class ModerationChartersFacade { private sdk; constructor(sdk: EvoSDK); /** * The seated charter of a contract: its `electedCharter`, or undefined when it has none. * Only a contest's winner is ever stored, so there is at most one. */ seatedCharter(targetContractId: wasm.IdentifierLike): Promise; /** A proposal (`submittedCharter`) by id, such as a seated charter's `submittedCharterId`. */ submittedCharter(submittedCharterId: wasm.IdentifierLike): Promise; /** * The team that moderates a contract: the seated charter's leader plus its elected members * and the members the leader added, less those the leader removed. Undefined when the * contract has no seated charter. `seats(maxAddedModerators)`, given the contract's elected * declaration, is the most members the team can hold as consensus counts them: a settled * deletion needs `Math.min(approvals, seats)` approvals. */ team(targetContractId: wasm.IdentifierLike): Promise; /** One page of the proposals for a contract, in filing order. */ submittedCharters(query: wasm.ModerationSubmittedChartersQuery): Promise>; /** One page of the join requests for a proposal, in the order of their owners' ids. */ joinRequests(query: wasm.ModerationJoinRequestsQuery): Promise>; /** The resignation requests for a seated charter that the leader has not acted on. */ pendingResignationRequests(electedCharterId: wasm.IdentifierLike): Promise; /** * Builds a join request whose message only the proposal's leader can read. Pass the result * to `documents.create`. */ buildJoinRequest(options: wasm.ModerationJoinRequestOptions): Promise; /** * Builds a resignation request whose message only the leader can read. Pass the result to * `documents.create`; deleting it withdraws the request. */ buildResignationRequest(options: wasm.ModerationResignationRequestOptions): Promise; }