/** * #mention.ts * * Code generated by ts-proto. DO NOT EDIT. * @packageDocumentation */ import _m0 from "protobufjs/minimal.js"; import { UserV2 } from "./userv2.js"; /** * Mentions found in a comment body. * Each top-level mention starts with a u/user token and is delimited by a newline or the end of the comment. */ export interface Mentions { items: Mention[]; } /** A top-level mention invocation, such as "u/remind-me 3 minutes" */ export interface Mention { user?: UserV2 | undefined; params?: MentionParameters | undefined; } /** * Parameters following a mention token. * Params start at the first nonblank text after u/user and may contain additional u/mentions as argument text. */ export interface MentionParameters { /** Original parameter text up to the newline or end of comment. */ raw: string; /** Whitespace-tokenized parameters from raw, preserving order. */ args: string[]; } export declare const Mentions: { $type: "devvit.reddit.v2alpha.Mentions"; encode(message: Mentions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Mentions; fromJSON(object: any): Mentions; toJSON(message: Mentions): unknown; create(base?: DeepPartial): Mentions; fromPartial(object: DeepPartial): Mentions; }; export declare const Mention: { $type: "devvit.reddit.v2alpha.Mention"; encode(message: Mention, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Mention; fromJSON(object: any): Mention; toJSON(message: Mention): unknown; create(base?: DeepPartial): Mention; fromPartial(object: DeepPartial): Mention; }; export declare const MentionParameters: { $type: "devvit.reddit.v2alpha.MentionParameters"; encode(message: MentionParameters, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MentionParameters; fromJSON(object: any): MentionParameters; toJSON(message: MentionParameters): unknown; create(base?: DeepPartial): MentionParameters; fromPartial(object: DeepPartial): MentionParameters; }; 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=mention.d.ts.map