UNPKG

@atproto/api

Version:

Client library for atproto and Bluesky

17 lines (16 loc) 795 B
import { AppBskyGraphDefs } from '../client/index'; import { Label, ModerationCause, ModerationOpts, ModerationDecision } from './types'; export declare class ModerationCauseAccumulator { did: string; causes: ModerationCause[]; constructor(); setDid(did: string): void; addBlocking(blocking: string | undefined): void; addBlockingByList(blockingByList: AppBskyGraphDefs.ListViewBasic | undefined): void; addBlockedBy(blockedBy: boolean | undefined): void; addBlockOther(blockOther: boolean | undefined): void; addLabel(label: Label, opts: ModerationOpts): void; addMuted(muted: boolean | undefined): void; addMutedByList(mutedByList: AppBskyGraphDefs.ListViewBasic | undefined): void; finalizeDecision(opts: ModerationOpts): ModerationDecision; }