/** * Copyright (c) 2024–present AxonSDK. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 */ import type { DeploymentConfig, Message } from '../types.js'; import type { RouterConfig, RouterDeployment, RouterSendOptions, ProviderHealthSnapshot, RouterEvent, RouterEventHandler } from './types.js'; export declare class AxonRouter { private entries; private rrOrder; private rrProviderIndex; private readonly cfg; private eventHandlers; constructor(config: RouterConfig); connect(): Promise; disconnect(): void; deploy(config: DeploymentConfig): Promise; send(payload: unknown, options?: RouterSendOptions): Promise; onMessage(handler: (msg: Message) => void): () => void; health(): ProviderHealthSnapshot[]; onEvent(handler: RouterEventHandler): () => void; reset(): void; private _rankProviders; private _emit; } export type { RouterConfig, RouterDeployment, RouterSendOptions, ProviderHealthSnapshot, RouterEvent, RouterEventHandler }; //# sourceMappingURL=index.d.ts.map