import { DurationMs } from '../utils/DurationMs.mjs'; /** * * Configurations for a subscription, */ export declare class EntitySubscriptionConfiguration { /** * * The amount of (unconsumed) events that the subscription can buffer */ channelBufferCapacity: number; /** * * How the subscription should behave if a new event is received but it does not fit in the buffer */ onBufferFull: EntitySubscriptionConfiguration.FullBufferBehaviour; /** * * If the (re)connection fails how long to wait before another attempt. */ reconnectionDelay: DurationMs; /** * * Factor for increasing the delay between (re)connection attempts in case of repeated failures. */ retryDelayExponentFactor: number; /** * * How many times should the subscription attempt to (re)connect before closing with a [EntitySubscription.ConnectionException] */ connectionMaxRetries: number; constructor(partial: Partial); } export declare namespace EntitySubscriptionConfiguration { enum FullBufferBehaviour { Close = "Close", DropOldest = "DropOldest", Ignore = "Ignore" } }