/*****
 License
 --------------
 Copyright © 2017 Bill & Melinda Gates Foundation
 The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

 Contributors
 --------------
 This is the official list (alphabetical ordering) of the Mojaloop project contributors for this file.
 Names of the original copyright holders (individuals or organizations)
 should be listed with a '*' in the first column. People who have
 contributed from an organization can be listed under the organization
 that actually holds the copyright for their contributions (see the
 Gates Foundation organization for an example). Those individuals should have
 their names indented and be marked with a '-'. Email address can be added
 optionally within square brackets <email>.

 * Coil
 - Jason Bruwer <jason.bruwer@coil.com>

 * Arg Software
 - José Antunes <jose.antunes@arg.software>
 - Rui Rocha <rui.rocha@arg.software>

 --------------
 ******/
import { ILogger } from "@mojaloop/logging-bc-public-types-lib";
import { IParticipant, IParticipantAccount } from "@mojaloop/participant-bc-public-types-lib";
import { IAuthenticatedHttpRequester } from "@mojaloop/security-bc-public-types-lib";
import { ParticipantSearchResults } from "@mojaloop/participant-bc-public-types-lib";
import { IMessageConsumer } from "@mojaloop/platform-shared-lib-messaging-types-lib";
export declare class ParticipantsHttpClient {
    private readonly _logger;
    private readonly _baseUrlHttpService;
    private readonly _authRequester;
    private readonly _cacheTimeoutMs;
    private readonly _messageConsumer;
    private _participantsCache;
    private _refreshTimer;
    constructor(logger: ILogger, baseUrlHttpService: string, authRequester: IAuthenticatedHttpRequester, cacheTimeoutMs?: number, messageConsumer?: IMessageConsumer | null);
    init(): Promise<void>;
    destroy(): Promise<void>;
    private _startRefreshTimer;
    _cacheSet(arg: IParticipant | IParticipant[]): Promise<void>;
    _cacheGet(id: string): Promise<IParticipant | null>;
    getAllParticipants(): Promise<ParticipantSearchResults>;
    getParticipantsByIds(ids: string[]): Promise<IParticipant[]>;
    getParticipantById(participantId: string): Promise<IParticipant | null>;
    getParticipantAccountsById(participantId: string): Promise<IParticipantAccount[] | null>;
    refreshParticipants(): Promise<string[]>;
    private _messageHandler;
}
