declare const COMMUNITY_TYPES: readonly ["comment", "question"]; type CommunityType = (typeof COMMUNITY_TYPES)[number]; declare const COMMUNITY_TARGET_KINDS: readonly ["stream", "vod"]; type CommunityTargetKind = (typeof COMMUNITY_TARGET_KINDS)[number]; type StreamCommunityFlags = { commentsEnabled: boolean; commentsAfterEnd: boolean; commentsOpen: boolean; qaEnabled: boolean; qaOpen: boolean; }; type VodCommunityFlags = { commentsEnabled: boolean; commentsOpen: boolean; }; type CommunityFlags = StreamCommunityFlags | VodCommunityFlags; type CommunityAnswer = { body: string; displayName: string | null; picture: string | null; answeredAt: number; }; type CommunityItem = { id: string; type: CommunityType; parentId: string | null; body: string; displayName: string; picture: string | null; guestId: string; upvoteCount: number; pinnedAt: number | null; highlightedAt: number | null; hiddenAt?: number | null; dismissedAt?: number | null; answer: CommunityAnswer | null; createdAt: number; updatedAt: number; replies?: CommunityItem[]; }; type CommunityList = { items: CommunityItem[]; nextCursor: string | null; }; type CommunityCreateInput = { type: CommunityType; body: string; displayName?: string; picture?: string | null; guestId?: string; parentId?: string; }; type CommunityPatchInput = { hidden?: boolean; pinned?: boolean; highlighted?: boolean; dismissed?: boolean; deleted?: boolean; answer?: { body: string; displayName?: string; picture?: string | null; } | null; }; type CommunitySettingsPatch = { commentsEnabled?: boolean; commentsAfterEnd?: boolean; qaEnabled?: boolean; }; declare function parseCommunityFlags(value: unknown, kind: "stream"): StreamCommunityFlags | null; declare function parseCommunityFlags(value: unknown, kind: "vod"): VodCommunityFlags | null; declare function parseCommunityFlags(value: unknown, kind: CommunityTargetKind): CommunityFlags | null; declare function parseCommunityItem(value: unknown): CommunityItem | null; declare function parseCommunityList(value: unknown): CommunityList; declare function hasQa(flags: CommunityFlags): flags is StreamCommunityFlags; export { type CommunityTargetKind as C, type StreamCommunityFlags as S, type VodCommunityFlags as V, type CommunityFlags as a, type CommunityType as b, type CommunityList as c, type CommunityCreateInput as d, type CommunityItem as e, type CommunityPatchInput as f, type CommunitySettingsPatch as g, hasQa as h, parseCommunityItem as i, parseCommunityList as j, parseCommunityFlags as p };