/// /// import * as thrift from "@creditkarma/thrift-server-core"; import * as Topic from "./Topic"; 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 IFollow__Args { topic: Topic.ITopic; } export interface IFollow__ArgsArgs { topic: Topic.ITopicArgs; } export declare const Follow__ArgsCodec: thrift.IStructCodec; export declare class Follow__Args extends thrift.StructLike implements IFollow__Args { topic: Topic.ITopic; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IFollow__ArgsArgs); static read(input: thrift.TProtocol): Follow__Args; static write(args: IFollow__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IUnfollow__Args { topic: Topic.ITopic; } export interface IUnfollow__ArgsArgs { topic: Topic.ITopicArgs; } export declare const Unfollow__ArgsCodec: thrift.IStructCodec; export declare class Unfollow__Args extends thrift.StructLike implements IUnfollow__Args { topic: Topic.ITopic; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IUnfollow__ArgsArgs); static read(input: thrift.TProtocol): Unfollow__Args; static write(args: IUnfollow__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsFollowing__Args { topic: Topic.ITopic; } export interface IIsFollowing__ArgsArgs { topic: Topic.ITopicArgs; } export declare const IsFollowing__ArgsCodec: thrift.IStructCodec; export declare class IsFollowing__Args extends thrift.StructLike implements IIsFollowing__Args { topic: Topic.ITopic; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IIsFollowing__ArgsArgs); static read(input: thrift.TProtocol): IsFollowing__Args; static write(args: IIsFollowing__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IFollow__Result { success?: boolean; } export interface IFollow__ResultArgs { success?: boolean; } export declare const Follow__ResultCodec: thrift.IStructCodec; export declare class Follow__Result extends thrift.StructLike implements IFollow__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IFollow__ResultArgs); static read(input: thrift.TProtocol): Follow__Result; static write(args: IFollow__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IUnfollow__Result { success?: boolean; } export interface IUnfollow__ResultArgs { success?: boolean; } export declare const Unfollow__ResultCodec: thrift.IStructCodec; export declare class Unfollow__Result extends thrift.StructLike implements IUnfollow__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IUnfollow__ResultArgs); static read(input: thrift.TProtocol): Unfollow__Result; static write(args: IUnfollow__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsFollowing__Result { success?: boolean; } export interface IIsFollowing__ResultArgs { success?: boolean; } export declare const IsFollowing__ResultCodec: thrift.IStructCodec; export declare class IsFollowing__Result extends thrift.StructLike implements IIsFollowing__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsFollowing__ResultArgs); static read(input: thrift.TProtocol): IsFollowing__Result; static write(args: IIsFollowing__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; }; follow(topic: Topic.ITopicArgs, context?: Context): Promise; unfollow(topic: Topic.ITopicArgs, context?: Context): Promise; isFollowing(topic: Topic.ITopicArgs, context?: Context): Promise; } export interface IHandler { follow(topic: Topic.ITopic, context?: Context): boolean | Promise; unfollow(topic: Topic.ITopic, context?: Context): boolean | Promise; isFollowing(topic: Topic.ITopic, context?: Context): boolean | 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_follow(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_unfollow(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_isFollowing(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; }