///
///
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 {
}
export interface IIsAvailable__ArgsArgs {
}
export declare const IsAvailable__ArgsCodec: thrift.IStructCodec;
export declare class IsAvailable__Args extends thrift.StructLike implements IIsAvailable__Args {
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 IPlay__Args {
}
export interface IPlay__ArgsArgs {
}
export declare const Play__ArgsCodec: thrift.IStructCodec;
export declare class Play__Args extends thrift.StructLike implements IPlay__Args {
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IPlay__ArgsArgs);
static read(input: thrift.TProtocol): Play__Args;
static write(args: IPlay__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IIsPlaying__Args {
}
export interface IIsPlaying__ArgsArgs {
}
export declare const IsPlaying__ArgsCodec: thrift.IStructCodec;
export declare class IsPlaying__Args extends thrift.StructLike implements IIsPlaying__Args {
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IIsPlaying__ArgsArgs);
static read(input: thrift.TProtocol): IsPlaying__Args;
static write(args: IIsPlaying__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 IPlay__Result {
success?: void;
}
export interface IPlay__ResultArgs {
success?: void;
}
export declare const Play__ResultCodec: thrift.IStructCodec;
export declare class Play__Result extends thrift.StructLike implements IPlay__Result {
success?: void;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IPlay__ResultArgs);
static read(input: thrift.TProtocol): Play__Result;
static write(args: IPlay__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IIsPlaying__Result {
success?: boolean;
}
export interface IIsPlaying__ResultArgs {
success?: boolean;
}
export declare const IsPlaying__ResultCodec: thrift.IStructCodec;
export declare class IsPlaying__Result extends thrift.StructLike implements IIsPlaying__Result {
success?: boolean;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IIsPlaying__ResultArgs);
static read(input: thrift.TProtocol): IsPlaying__Result;
static write(args: IIsPlaying__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(context?: Context): Promise;
play(context?: Context): Promise;
isPlaying(context?: Context): Promise;
}
export interface IHandler {
isAvailable(context?: Context): boolean | Promise;
play(context?: Context): void | Promise;
isPlaying(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_play(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
process_isPlaying(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
}