/// import { EventEmitter } from 'events'; import { ApplicationConfiguration } from './configuration'; import { ApplicationDeveloperSubscription, ApplicationDeveloperKey, GetApplicationDeveloperSubscriptionResponse } from './protos/types/application'; export declare const DEVELOPER_KEY_VALIDATOR_EVENTS: { UPDATE_SUCCESS: symbol; UPDATE_ERROR: symbol; }; interface ApplicationDeveloperKeyWithSubscription extends ApplicationDeveloperKey { subscription: ApplicationDeveloperSubscription; } declare class DeveloperSubscriptionReceiver extends EventEmitter { private call; private client; private config; get isRunning(): boolean; constructor(config: ApplicationConfiguration); start(): this; stop(): this; private createCall; } export interface DeveloperKeyValidator extends EventEmitter { start(): void; stop(): void; isValidDeveloperKey(key: string): boolean; validateDeveloperKey(key: string): DeveloperSubscriptionValidationError; } export interface DeveloperKeysUpdatedPayload { keys: ApplicationDeveloperKeyWithSubscription[]; subscriptions: ApplicationDeveloperSubscription[]; } export declare class DeveloperKeyNotSyncedError extends Error { } export declare class DeveloperKeyNotFoundError extends Error { } export declare class DeveloperKeyNotActiveError extends Error { } export declare class DeveloperKeySubscriptionNotActiveError extends Error { } export declare type DeveloperSubscriptionValidationError = null | DeveloperKeyNotFoundError | DeveloperKeyNotActiveError | DeveloperKeySubscriptionNotActiveError; export declare class DefaultDeveloperKeyValidator extends DeveloperSubscriptionReceiver implements DeveloperKeyValidator { private developerSubscriptions; private developerKeys; private developerKeysSynced; constructor(config: ApplicationConfiguration); start(): this; stop(): this; isValidDeveloperKey(key: string): boolean; validateDeveloperKey(key: string): DeveloperSubscriptionValidationError; protected onSubscriptionsUpdate(update: GetApplicationDeveloperSubscriptionResponse): void; } export {};