import { Semaphore } from "@chriscdn/promise-semaphore"; import { type ErreurMandataire, type MessageDIpa, type MessagePourIpa } from "@constl/mandataire"; import { Constellation, optsConstellation } from "../client.js"; import type { schémaFonctionOublier } from "../types.js"; export declare class EnveloppeIpa { ipa?: Constellation; erreurInitialisation?: Error; _messagesEnAttente: MessagePourIpa[]; prêt: boolean; dicFRetourSuivi: { [key: string]: { fOublier: schémaFonctionOublier; } & { [key: string]: (...args: unknown[]) => Promise; }; }; opts: optsConstellation; fsMessages: { [clef: string]: (m: MessageDIpa) => void; }; fsErreurs: { [clef: string]: (e: ErreurMandataire) => void; }; _verrou: Semaphore; constructor(fMessage: (m: MessageDIpa) => void, fErreur: (args: ErreurMandataire) => void, opts?: optsConstellation | Constellation); fMessage(m: MessageDIpa): void; fErreur({ erreur, idRequête, code, }: { erreur: string; idRequête?: string; code: string; }): void; init(): Promise; gérerMessage(message: MessagePourIpa): Promise; _gérerMessage(message: MessagePourIpa): Promise; extraireFonctionIPA(adresseFonction: string[], idMessage: string): ((...args: any[]) => unknown) | undefined; connecterÉcouteurs({ fMessage, fErreur, }: { fMessage: (m: MessageDIpa) => void; fErreur: (e: ErreurMandataire) => void; }): () => void; fermer(): Promise; }