/** * #subredditv2.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import _m0 from "protobufjs/minimal.js"; export declare enum SubredditType { ARCHIVED = 0, EMPLOYEES_ONLY = 1, GOLD_ONLY = 2, GOLD_RESTRICTED = 3, PRIVATE = 4, PUBLIC = 5, RESTRICTED = 6, USER = 7, UNRECOGNIZED = -1 } export declare function subredditTypeFromJSON(object: any): SubredditType; export declare function subredditTypeToJSON(object: SubredditType): number; /** used with data-api */ export declare enum SubredditRating { UNKNOWN_SUBREDDIT_RATING = 0, /** E - everyone */ E = 1, /** M1 - mature 1 */ M1 = 2, /** M2 - mature 2 */ M2 = 3, /** D - high-risk drug use */ D = 4, /** V - violence & gore */ V = 5, /** X - sexually explicit */ X = 6, UNRECOGNIZED = -1 } export declare function subredditRatingFromJSON(object: any): SubredditRating; export declare function subredditRatingToJSON(object: SubredditRating): number; /** creating new enums so that we can have unspecified and unset values */ export declare enum SubredditTypeV2 { SUBREDDIT_TYPE_UNSPECIFIED = 0, SUBREDDIT_TYPE_UNKNOWN = 1, SUBREDDIT_TYPE_ARCHIVED = 2, SUBREDDIT_TYPE_EMPLOYEES_ONLY = 3, SUBREDDIT_TYPE_GOLD_ONLY = 4, SUBREDDIT_TYPE_GOLD_RESTRICTED = 5, SUBREDDIT_TYPE_PRIVATE = 6, SUBREDDIT_TYPE_PUBLIC = 7, SUBREDDIT_TYPE_RESTRICTED = 8, SUBREDDIT_TYPE_USER = 9, UNRECOGNIZED = -1 } export declare function subredditTypeV2FromJSON(object: any): SubredditTypeV2; export declare function subredditTypeV2ToJSON(object: SubredditTypeV2): number; export declare enum SubredditRatingV2 { SUBREDDIT_RATING_UNSPECIFIED = 0, SUBREDDIT_RATING_UNKNOWN = 1, /** SUBREDDIT_RATING_E - everyone */ SUBREDDIT_RATING_E = 2, /** SUBREDDIT_RATING_M1 - mature 1 */ SUBREDDIT_RATING_M1 = 3, /** SUBREDDIT_RATING_M2 - mature 2 */ SUBREDDIT_RATING_M2 = 4, /** SUBREDDIT_RATING_D - high-risk drug use */ SUBREDDIT_RATING_D = 5, /** SUBREDDIT_RATING_V - violence & gore */ SUBREDDIT_RATING_V = 6, /** SUBREDDIT_RATING_X - sexually explicit */ SUBREDDIT_RATING_X = 7, UNRECOGNIZED = -1 } export declare function subredditRatingV2FromJSON(object: any): SubredditRatingV2; export declare function subredditRatingV2ToJSON(object: SubredditRatingV2): number; export interface SubredditV2 { id: string; name: string; nsfw: boolean; type: SubredditType; spam: boolean; quarantined: boolean; topics: string[]; rating: SubredditRating; subscribersCount: number; permalink: string; title: string; description: string; } export declare const SubredditV2: { $type: "devvit.reddit.v2alpha.SubredditV2"; encode(message: SubredditV2, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SubredditV2; fromJSON(object: any): SubredditV2; toJSON(message: SubredditV2): unknown; create(base?: DeepPartial): SubredditV2; fromPartial(object: DeepPartial): SubredditV2; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; type DeepPartial = T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {}; //# sourceMappingURL=subredditv2.d.ts.map