export type BridgeDetails = { port: MessagePort; initialState?: string; }; /** * Waits for the host app to send the bridge details (port and optional * initial state) as part of the handshake. * * @internal * * @privateRemarks * There might be multiple connections to the host app from the same origin * (ie, multiple instances of the same custom app). The handshake ID is used to * identify the connection and is used to filter the messages from the host * app. Similarly, the messages that are not coming from the host app are * ignored. * * @param handshakeId - the handshake ID to wait for. * @param hostAppOrigin - the origin of the host app. * @returns the bridge port and optional initial state. * * @throws an error if the bridge details are not received within the * handshake timeout. */ export declare const waitForBridgeDetails: (handshakeId: string, hostAppOrigin: string) => Promise;