///
///
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 {
articleId: string;
}
export interface IIsAvailable__ArgsArgs {
articleId: string;
}
export declare const IsAvailable__ArgsCodec: thrift.IStructCodec;
export declare class IsAvailable__Args extends thrift.StructLike implements IIsAvailable__Args {
articleId: 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 IGetAudioDurationSeconds__Args {
articleId: string;
}
export interface IGetAudioDurationSeconds__ArgsArgs {
articleId: string;
}
export declare const GetAudioDurationSeconds__ArgsCodec: thrift.IStructCodec;
export declare class GetAudioDurationSeconds__Args extends thrift.StructLike implements IGetAudioDurationSeconds__Args {
articleId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IGetAudioDurationSeconds__ArgsArgs);
static read(input: thrift.TProtocol): GetAudioDurationSeconds__Args;
static write(args: IGetAudioDurationSeconds__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IPlay__Args {
articleId: string;
}
export interface IPlay__ArgsArgs {
articleId: string;
}
export declare const Play__ArgsCodec: thrift.IStructCodec;
export declare class Play__Args extends thrift.StructLike implements IPlay__Args {
articleId: string;
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 {
articleId: string;
}
export interface IIsPlaying__ArgsArgs {
articleId: string;
}
export declare const IsPlaying__ArgsCodec: thrift.IStructCodec;
export declare class IsPlaying__Args extends thrift.StructLike implements IIsPlaying__Args {
articleId: string;
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 IPause__Args {
articleId: string;
}
export interface IPause__ArgsArgs {
articleId: string;
}
export declare const Pause__ArgsCodec: thrift.IStructCodec;
export declare class Pause__Args extends thrift.StructLike implements IPause__Args {
articleId: string;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: IPause__ArgsArgs);
static read(input: thrift.TProtocol): Pause__Args;
static write(args: IPause__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 IGetAudioDurationSeconds__Result {
success?: number;
}
export interface IGetAudioDurationSeconds__ResultArgs {
success?: number;
}
export declare const GetAudioDurationSeconds__ResultCodec: thrift.IStructCodec;
export declare class GetAudioDurationSeconds__Result extends thrift.StructLike implements IGetAudioDurationSeconds__Result {
success?: number;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IGetAudioDurationSeconds__ResultArgs);
static read(input: thrift.TProtocol): GetAudioDurationSeconds__Result;
static write(args: IGetAudioDurationSeconds__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;
}
export interface IPlay__Result {
success?: boolean;
}
export interface IPlay__ResultArgs {
success?: boolean;
}
export declare const Play__ResultCodec: thrift.IStructCodec;
export declare class Play__Result extends thrift.StructLike implements IPlay__Result {
success?: boolean;
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 interface IPause__Result {
success?: boolean;
}
export interface IPause__ResultArgs {
success?: boolean;
}
export declare const Pause__ResultCodec: thrift.IStructCodec;
export declare class Pause__Result extends thrift.StructLike implements IPause__Result {
success?: boolean;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: IPause__ResultArgs);
static read(input: thrift.TProtocol): Pause__Result;
static write(args: IPause__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(articleId: string, context?: Context): Promise;
getAudioDurationSeconds(articleId: string, context?: Context): Promise;
play(articleId: string, context?: Context): Promise;
isPlaying(articleId: string, context?: Context): Promise;
pause(articleId: string, context?: Context): Promise;
}
export interface IHandler {
isAvailable(articleId: string, context?: Context): boolean | Promise;
getAudioDurationSeconds(articleId: string, context?: Context): number | Promise;
play(articleId: string, context?: Context): boolean | Promise;
isPlaying(articleId: string, context?: Context): boolean | Promise;
pause(articleId: 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_getAudioDurationSeconds(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;
process_pause(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise;
}