/// /// import * as thrift from "@creditkarma/thrift-server-core"; import * as VideoSlot from "./VideoSlot"; import * as VideoEvent from "./VideoEvent"; 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 IInsertVideos__Args { videoSlots: Array; } export interface IInsertVideos__ArgsArgs { videoSlots: Array; } export declare const InsertVideos__ArgsCodec: thrift.IStructCodec; export declare class InsertVideos__Args extends thrift.StructLike implements IInsertVideos__Args { videoSlots: Array; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IInsertVideos__ArgsArgs); static read(input: thrift.TProtocol): InsertVideos__Args; static write(args: IInsertVideos__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IUpdateVideos__Args { videoSlots: Array; } export interface IUpdateVideos__ArgsArgs { videoSlots: Array; } export declare const UpdateVideos__ArgsCodec: thrift.IStructCodec; export declare class UpdateVideos__Args extends thrift.StructLike implements IUpdateVideos__Args { videoSlots: Array; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IUpdateVideos__ArgsArgs); static read(input: thrift.TProtocol): UpdateVideos__Args; static write(args: IUpdateVideos__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISendVideoEvent__Args { videoEvent: VideoEvent.IVideoEvent; } export interface ISendVideoEvent__ArgsArgs { videoEvent: VideoEvent.IVideoEventArgs; } export declare const SendVideoEvent__ArgsCodec: thrift.IStructCodec; export declare class SendVideoEvent__Args extends thrift.StructLike implements ISendVideoEvent__Args { videoEvent: VideoEvent.IVideoEvent; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: ISendVideoEvent__ArgsArgs); static read(input: thrift.TProtocol): SendVideoEvent__Args; static write(args: ISendVideoEvent__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISendVideoAttentionTimes__Args { componentAttentionMs: Map; } export interface ISendVideoAttentionTimes__ArgsArgs { componentAttentionMs: Map; } export declare const SendVideoAttentionTimes__ArgsCodec: thrift.IStructCodec; export declare class SendVideoAttentionTimes__Args extends thrift.StructLike implements ISendVideoAttentionTimes__Args { componentAttentionMs: Map; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: ISendVideoAttentionTimes__ArgsArgs); static read(input: thrift.TProtocol): SendVideoAttentionTimes__Args; static write(args: ISendVideoAttentionTimes__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISetFullscreen__Args { isFullscreen: boolean; } export interface ISetFullscreen__ArgsArgs { isFullscreen: boolean; } export declare const SetFullscreen__ArgsCodec: thrift.IStructCodec; export declare class SetFullscreen__Args extends thrift.StructLike implements ISetFullscreen__Args { isFullscreen: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: ISetFullscreen__ArgsArgs); static read(input: thrift.TProtocol): SetFullscreen__Args; static write(args: ISetFullscreen__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsAutoplayEnabled__Args { } export interface IIsAutoplayEnabled__ArgsArgs { } export declare const IsAutoplayEnabled__ArgsCodec: thrift.IStructCodec; export declare class IsAutoplayEnabled__Args extends thrift.StructLike implements IIsAutoplayEnabled__Args { readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsAutoplayEnabled__ArgsArgs); static read(input: thrift.TProtocol): IsAutoplayEnabled__Args; static write(args: IIsAutoplayEnabled__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IInsertVideos__Result { success?: void; } export interface IInsertVideos__ResultArgs { success?: void; } export declare const InsertVideos__ResultCodec: thrift.IStructCodec; export declare class InsertVideos__Result extends thrift.StructLike implements IInsertVideos__Result { success?: void; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IInsertVideos__ResultArgs); static read(input: thrift.TProtocol): InsertVideos__Result; static write(args: IInsertVideos__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IUpdateVideos__Result { success?: void; } export interface IUpdateVideos__ResultArgs { success?: void; } export declare const UpdateVideos__ResultCodec: thrift.IStructCodec; export declare class UpdateVideos__Result extends thrift.StructLike implements IUpdateVideos__Result { success?: void; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IUpdateVideos__ResultArgs); static read(input: thrift.TProtocol): UpdateVideos__Result; static write(args: IUpdateVideos__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISendVideoEvent__Result { success?: void; } export interface ISendVideoEvent__ResultArgs { success?: void; } export declare const SendVideoEvent__ResultCodec: thrift.IStructCodec; export declare class SendVideoEvent__Result extends thrift.StructLike implements ISendVideoEvent__Result { success?: void; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: ISendVideoEvent__ResultArgs); static read(input: thrift.TProtocol): SendVideoEvent__Result; static write(args: ISendVideoEvent__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISendVideoAttentionTimes__Result { success?: void; } export interface ISendVideoAttentionTimes__ResultArgs { success?: void; } export declare const SendVideoAttentionTimes__ResultCodec: thrift.IStructCodec; export declare class SendVideoAttentionTimes__Result extends thrift.StructLike implements ISendVideoAttentionTimes__Result { success?: void; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: ISendVideoAttentionTimes__ResultArgs); static read(input: thrift.TProtocol): SendVideoAttentionTimes__Result; static write(args: ISendVideoAttentionTimes__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISetFullscreen__Result { success?: boolean; } export interface ISetFullscreen__ResultArgs { success?: boolean; } export declare const SetFullscreen__ResultCodec: thrift.IStructCodec; export declare class SetFullscreen__Result extends thrift.StructLike implements ISetFullscreen__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: ISetFullscreen__ResultArgs); static read(input: thrift.TProtocol): SetFullscreen__Result; static write(args: ISetFullscreen__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsAutoplayEnabled__Result { success?: boolean; } export interface IIsAutoplayEnabled__ResultArgs { success?: boolean; } export declare const IsAutoplayEnabled__ResultCodec: thrift.IStructCodec; export declare class IsAutoplayEnabled__Result extends thrift.StructLike implements IIsAutoplayEnabled__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsAutoplayEnabled__ResultArgs); static read(input: thrift.TProtocol): IsAutoplayEnabled__Result; static write(args: IIsAutoplayEnabled__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; }; insertVideos(videoSlots: Array, context?: Context): Promise; updateVideos(videoSlots: Array, context?: Context): Promise; sendVideoEvent(videoEvent: VideoEvent.IVideoEventArgs, context?: Context): Promise; sendVideoAttentionTimes(componentAttentionMs: Map, context?: Context): Promise; setFullscreen(isFullscreen: boolean, context?: Context): Promise; isAutoplayEnabled(context?: Context): Promise; } export interface IHandler { insertVideos(videoSlots: Array, context?: Context): void | Promise; updateVideos(videoSlots: Array, context?: Context): void | Promise; sendVideoEvent(videoEvent: VideoEvent.IVideoEvent, context?: Context): void | Promise; sendVideoAttentionTimes(componentAttentionMs: Map, context?: Context): void | Promise; setFullscreen(isFullscreen: boolean, context?: Context): boolean | Promise; isAutoplayEnabled(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_insertVideos(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_updateVideos(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_sendVideoEvent(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_sendVideoAttentionTimes(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_setFullscreen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_isAutoplayEnabled(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; }