/// /// import * as thrift from "@creditkarma/thrift-server-core"; import * as SignInScreenReason from "./SignInScreenReason"; import * as SignInScreenReferrer from "./SignInScreenReferrer"; 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 IIsPremium__Args { } export interface IIsPremium__ArgsArgs { } export declare const IsPremium__ArgsCodec: thrift.IStructCodec; export declare class IsPremium__Args extends thrift.StructLike implements IIsPremium__Args { readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsPremium__ArgsArgs); static read(input: thrift.TProtocol): IsPremium__Args; static write(args: IIsPremium__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IFilterSeenArticles__Args { articleIds: Array; } export interface IFilterSeenArticles__ArgsArgs { articleIds: Array; } export declare const FilterSeenArticles__ArgsCodec: thrift.IStructCodec; export declare class FilterSeenArticles__Args extends thrift.StructLike implements IFilterSeenArticles__Args { articleIds: Array; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: IFilterSeenArticles__ArgsArgs); static read(input: thrift.TProtocol): FilterSeenArticles__Args; static write(args: IFilterSeenArticles__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IDiscussionId__Args { } export interface IDiscussionId__ArgsArgs { } export declare const DiscussionId__ArgsCodec: thrift.IStructCodec; export declare class DiscussionId__Args extends thrift.StructLike implements IDiscussionId__Args { readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IDiscussionId__ArgsArgs); static read(input: thrift.TProtocol): DiscussionId__Args; static write(args: IDiscussionId__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IDoesCcpaApply__Args { } export interface IDoesCcpaApply__ArgsArgs { } export declare const DoesCcpaApply__ArgsCodec: thrift.IStructCodec; export declare class DoesCcpaApply__Args extends thrift.StructLike implements IDoesCcpaApply__Args { readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IDoesCcpaApply__ArgsArgs); static read(input: thrift.TProtocol): DoesCcpaApply__Args; static write(args: IDoesCcpaApply__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsSignedIn__Args { } export interface IIsSignedIn__ArgsArgs { } export declare const IsSignedIn__ArgsCodec: thrift.IStructCodec; export declare class IsSignedIn__Args extends thrift.StructLike implements IIsSignedIn__Args { readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsSignedIn__ArgsArgs); static read(input: thrift.TProtocol): IsSignedIn__Args; static write(args: IIsSignedIn__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISignIn__Args { reason: SignInScreenReason.SignInScreenReason; referrer: SignInScreenReferrer.SignInScreenReferrer; } export interface ISignIn__ArgsArgs { reason: SignInScreenReason.SignInScreenReason; referrer: SignInScreenReferrer.SignInScreenReferrer; } export declare const SignIn__ArgsCodec: thrift.IStructCodec; export declare class SignIn__Args extends thrift.StructLike implements ISignIn__Args { reason: SignInScreenReason.SignInScreenReason; referrer: SignInScreenReferrer.SignInScreenReferrer; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args: ISignIn__ArgsArgs); static read(input: thrift.TProtocol): SignIn__Args; static write(args: ISignIn__ArgsArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsPremium__Result { success?: boolean; } export interface IIsPremium__ResultArgs { success?: boolean; } export declare const IsPremium__ResultCodec: thrift.IStructCodec; export declare class IsPremium__Result extends thrift.StructLike implements IIsPremium__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsPremium__ResultArgs); static read(input: thrift.TProtocol): IsPremium__Result; static write(args: IIsPremium__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IFilterSeenArticles__Result { success?: Array; } export interface IFilterSeenArticles__ResultArgs { success?: Array; } export declare const FilterSeenArticles__ResultCodec: thrift.IStructCodec; export declare class FilterSeenArticles__Result extends thrift.StructLike implements IFilterSeenArticles__Result { success?: Array; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IFilterSeenArticles__ResultArgs); static read(input: thrift.TProtocol): FilterSeenArticles__Result; static write(args: IFilterSeenArticles__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IDiscussionId__Result { success?: string; } export interface IDiscussionId__ResultArgs { success?: string; } export declare const DiscussionId__ResultCodec: thrift.IStructCodec; export declare class DiscussionId__Result extends thrift.StructLike implements IDiscussionId__Result { success?: string; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IDiscussionId__ResultArgs); static read(input: thrift.TProtocol): DiscussionId__Result; static write(args: IDiscussionId__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IDoesCcpaApply__Result { success?: boolean; } export interface IDoesCcpaApply__ResultArgs { success?: boolean; } export declare const DoesCcpaApply__ResultCodec: thrift.IStructCodec; export declare class DoesCcpaApply__Result extends thrift.StructLike implements IDoesCcpaApply__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IDoesCcpaApply__ResultArgs); static read(input: thrift.TProtocol): DoesCcpaApply__Result; static write(args: IDoesCcpaApply__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface IIsSignedIn__Result { success?: boolean; } export interface IIsSignedIn__ResultArgs { success?: boolean; } export declare const IsSignedIn__ResultCodec: thrift.IStructCodec; export declare class IsSignedIn__Result extends thrift.StructLike implements IIsSignedIn__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: IIsSignedIn__ResultArgs); static read(input: thrift.TProtocol): IsSignedIn__Result; static write(args: IIsSignedIn__ResultArgs, output: thrift.TProtocol): void; write(output: thrift.TProtocol): void; } export interface ISignIn__Result { success?: boolean; } export interface ISignIn__ResultArgs { success?: boolean; } export declare const SignIn__ResultCodec: thrift.IStructCodec; export declare class SignIn__Result extends thrift.StructLike implements ISignIn__Result { success?: boolean; readonly _annotations: thrift.IThriftAnnotations; readonly _fieldAnnotations: thrift.IFieldAnnotations; constructor(args?: ISignIn__ResultArgs); static read(input: thrift.TProtocol): SignIn__Result; static write(args: ISignIn__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; }; isPremium(context?: Context): Promise; filterSeenArticles(articleIds: Array, context?: Context): Promise>; discussionId(context?: Context): Promise; doesCcpaApply(context?: Context): Promise; isSignedIn(context?: Context): Promise; signIn(reason: SignInScreenReason.SignInScreenReason, referrer: SignInScreenReferrer.SignInScreenReferrer, context?: Context): Promise; } export interface IHandler { isPremium(context?: Context): boolean | Promise; filterSeenArticles(articleIds: Array, context?: Context): Array | Promise>; discussionId(context?: Context): string | Promise; doesCcpaApply(context?: Context): boolean | Promise; isSignedIn(context?: Context): boolean | Promise; signIn(reason: SignInScreenReason.SignInScreenReason, referrer: SignInScreenReferrer.SignInScreenReferrer, 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_isPremium(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_filterSeenArticles(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_discussionId(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_doesCcpaApply(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_isSignedIn(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; process_signIn(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise; }