/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { Abort, Duration } from "@matter/general"; import { IcdPeerWakefulness, PeerAddress } from "@matter/protocol"; /** * Hold work for a LIT ICD peer until it wakes. * * Returns undefined when there is nothing to wait for (no wakefulness, or the peer is awake, as a peer that needs no * awaiting always is), so a caller on a hot path adds no microtask. Otherwise the promise resolves when the peer * wakes, rejects with {@link IcdPeerAsleepError} when `timeout` (default: until its next Check-In is due) elapses first, * and rejects with the abort error when `abort` aborts. */ export declare function holdUntilIcdPeerAwake(wakefulness: IcdPeerWakefulness | undefined, address: PeerAddress, options?: holdUntilIcdPeerAwake.Options): Promise | undefined; export declare namespace holdUntilIcdPeerAwake { interface Options { timeout?: Duration; abort?: Abort.Signal | (Abort.Signal | undefined)[]; } } //# sourceMappingURL=holdUntilIcdPeerAwake.d.ts.map