///
///
import * as thrift from "@creditkarma/thrift-server-core";
import * as DiscussionServiceResponse from "./DiscussionServiceResponse";
export declare const serviceName: string;
export declare const annotations: thrift.IThriftAnnotations;
export declare const methodAnnotations: thrift.IMethodAnnotations;
export declare const methodNames: Array;
export declare const methodParameters: {
[methodName: string]: number;
};
export interface IRecommend__Args {
commentId: string;
}
export interface IRecommend__ArgsArgs {
commentId: string;
}
export declare const Recommend__ArgsCodec: thrift.IStructCodec;
export declare class Recommend__Args extends thrift.StructLike implements IRecommend__Args {
commentId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IRecommend__ArgsArgs);
static read(input: thrift.TProtocol): Recommend__Args;
static write(args: IRecommend__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IComment__Args {
shortUrl: string;
body: string;
}
export interface IComment__ArgsArgs {
shortUrl: string;
body: string;
}
export declare const Comment__ArgsCodec: thrift.IStructCodec;
export declare class Comment__Args extends thrift.StructLike implements IComment__Args {
shortUrl: string;
body: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IComment__ArgsArgs);
static read(input: thrift.TProtocol): Comment__Args;
static write(args: IComment__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IReply__Args {
shortUrl: string;
body: string;
parentCommentId: string;
}
export interface IReply__ArgsArgs {
shortUrl: string;
body: string;
parentCommentId: string;
}
export declare const Reply__ArgsCodec: thrift.IStructCodec;
export declare class Reply__Args extends thrift.StructLike implements IReply__Args {
shortUrl: string;
body: string;
parentCommentId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IReply__ArgsArgs);
static read(input: thrift.TProtocol): Reply__Args;
static write(args: IReply__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IGetUserProfile__Args {
}
export interface IGetUserProfile__ArgsArgs {
}
export declare const GetUserProfile__ArgsCodec: thrift.IStructCodec;
export declare class GetUserProfile__Args extends thrift.StructLike implements IGetUserProfile__Args {
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IGetUserProfile__ArgsArgs);
static read(input: thrift.TProtocol): GetUserProfile__Args;
static write(args: IGetUserProfile__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IRecommend__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
}
export interface IRecommend__ResultArgs {
success?: DiscussionServiceResponse.DiscussionServiceResponseArgs;
}
export declare const Recommend__ResultCodec: thrift.IStructCodec;
export declare class Recommend__Result extends thrift.StructLike implements IRecommend__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IRecommend__ResultArgs);
static read(input: thrift.TProtocol): Recommend__Result;
static write(args: IRecommend__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IComment__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
}
export interface IComment__ResultArgs {
success?: DiscussionServiceResponse.DiscussionServiceResponseArgs;
}
export declare const Comment__ResultCodec: thrift.IStructCodec;
export declare class Comment__Result extends thrift.StructLike implements IComment__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IComment__ResultArgs);
static read(input: thrift.TProtocol): Comment__Result;
static write(args: IComment__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IReply__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
}
export interface IReply__ResultArgs {
success?: DiscussionServiceResponse.DiscussionServiceResponseArgs;
}
export declare const Reply__ResultCodec: thrift.IStructCodec;
export declare class Reply__Result extends thrift.StructLike implements IReply__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IReply__ResultArgs);
static read(input: thrift.TProtocol): Reply__Result;
static write(args: IReply__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IGetUserProfile__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
}
export interface IGetUserProfile__ResultArgs {
success?: DiscussionServiceResponse.DiscussionServiceResponseArgs;
}
export declare const GetUserProfile__ResultCodec: thrift.IStructCodec;
export declare class GetUserProfile__Result extends thrift.StructLike implements IGetUserProfile__Result {
success?: DiscussionServiceResponse.DiscussionServiceResponse;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IGetUserProfile__ResultArgs);
static read(input: thrift.TProtocol): GetUserProfile__Result;
static write(args: IGetUserProfile__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export declare class Client extends thrift.ThriftClient {
static readonly serviceName: string;
static readonly annotations: thrift.IThriftAnnotations;
static readonly methodAnnotations: thrift.IMethodAnnotations;
static readonly methodNames: Array;
readonly _serviceName: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _methodAnnotations: thrift.IMethodAnnotations;
readonly _methodNames: Array;
readonly _methodParameters?: {
[methodName: string]: number;
};
recommend(commentId: string, context?: Context): Promise;
comment(shortUrl: string, body: string, context?: Context): Promise;
reply(shortUrl: string, body: string, parentCommentId: string, context?: Context): Promise;
getUserProfile(context?: Context): Promise;
}
export interface IHandler {
recommend(commentId: string, context?: Context): DiscussionServiceResponse.DiscussionServiceResponseArgs | Promise;
comment(shortUrl: string, body: string, context?: Context): DiscussionServiceResponse.DiscussionServiceResponseArgs | Promise;
reply(shortUrl: string, body: string, parentCommentId: string, context?: Context): DiscussionServiceResponse.DiscussionServiceResponseArgs | Promise;
getUserProfile(context?: Context): DiscussionServiceResponse.DiscussionServiceResponseArgs | Promise;
}
export declare class Processor extends thrift.ThriftProcessor> {
protected readonly _handler: IHandler;
static readonly serviceName: string;
static readonly annotations: thrift.IThriftAnnotations;
static readonly methodAnnotations: thrift.IMethodAnnotations;
static readonly methodNames: Array;
readonly _serviceName: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _methodAnnotations: thrift.IMethodAnnotations;
readonly _methodNames: Array;
constructor(handler: IHandler);
process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
process_recommend(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
process_comment(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
process_reply(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
process_getUserProfile(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
}