/**
 * SpokePoolClientManager is a wrapper around spokePoolClients. We want to use wrapper almost always
 * instead of direct access to spokePoolClients because chainId can be invalid and we want to return undefined.
 */
export class SpokePoolManager {
    logger;
    spokePoolClients;
    constructor(logger, spokePoolClients) {
        this.logger = logger;
        this.spokePoolClients = spokePoolClients;
    }
    /**
     * Retrieves a SpokePoolClient for a given chainId.
     * @param chainId - The chainId of the spokePoolClient to retrieve.
     * @returns SpokePoolClient | undefined
     * @note This method returns SpokePoolClient for given chainId. If its not found, it returns undefined.
     */
    getClient(chainId) {
        return this.spokePoolClients[chainId];
    }
    /**
     * Retrieves all SpokePoolClients
     * @returns SpokePoolClient[]
     * @note This method returns all SpokePoolClients.
     */
    getSpokePoolClients() {
        return this.spokePoolClients;
    }
}
//# sourceMappingURL=SpokePoolClientManager.js.map