///
///
import * as thrift from "@creditkarma/thrift-server-core";
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 IIsAvailable__Args {
activityType: string;
activityId: string;
}
export interface IIsAvailable__ArgsArgs {
activityType: string;
activityId: string;
}
export declare const IsAvailable__ArgsCodec: thrift.IStructCodec;
export declare class IsAvailable__Args extends thrift.StructLike implements IIsAvailable__Args {
activityType: string;
activityId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IIsAvailable__ArgsArgs);
static read(input: thrift.TProtocol): IsAvailable__Args;
static write(args: IIsAvailable__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IFollow__Args {
activityType: string;
activityId: string;
}
export interface IFollow__ArgsArgs {
activityType: string;
activityId: string;
}
export declare const Follow__ArgsCodec: thrift.IStructCodec;
export declare class Follow__Args extends thrift.StructLike implements IFollow__Args {
activityType: string;
activityId: string;
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 {
activityType: string;
activityId: string;
}
export interface IUnfollow__ArgsArgs {
activityType: string;
activityId: string;
}
export declare const Unfollow__ArgsCodec: thrift.IStructCodec;
export declare class Unfollow__Args extends thrift.StructLike implements IUnfollow__Args {
activityType: string;
activityId: string;
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 {
activityType: string;
activityId: string;
}
export interface IIsFollowing__ArgsArgs {
activityType: string;
activityId: string;
}
export declare const IsFollowing__ArgsCodec: thrift.IStructCodec;
export declare class IsFollowing__Args extends thrift.StructLike implements IIsFollowing__Args {
activityType: string;
activityId: string;
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 IIsAvailable__Result {
success?: boolean;
}
export interface IIsAvailable__ResultArgs {
success?: boolean;
}
export declare const IsAvailable__ResultCodec: thrift.IStructCodec;
export declare class IsAvailable__Result extends thrift.StructLike implements IIsAvailable__Result {
success?: boolean;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IIsAvailable__ResultArgs);
static read(input: thrift.TProtocol): IsAvailable__Result;
static write(args: IIsAvailable__ResultArgs, 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;
};
isAvailable(activityType: string, activityId: string, context?: Context): Promise;
follow(activityType: string, activityId: string, context?: Context): Promise;
unfollow(activityType: string, activityId: string, context?: Context): Promise;
isFollowing(activityType: string, activityId: string, context?: Context): Promise;
}
export interface IHandler {
isAvailable(activityType: string, activityId: string, context?: Context): boolean | Promise;
follow(activityType: string, activityId: string, context?: Context): boolean | Promise;
unfollow(activityType: string, activityId: string, context?: Context): boolean | Promise;
isFollowing(activityType: string, activityId: string, 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_isAvailable(requestId: number, 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;
}