/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { ResultStatus } from "#action/response/ResultStatus.js"; import type { ClusterId, CommandId, CommandPath, EndpointNumber, TlvStream } from "@matter/types"; export type InvokeResult = AsyncIterable; export type DecodedInvokeResult = AsyncIterable; export declare namespace InvokeResult { type Chunk = Iterable; type DecodedChunk = Iterable; type Data = CommandStatus | CommandResponse; type DecodedData = CommandStatus | DecodedCommandResponse; interface ConcreteCommandPath extends CommandPath { endpointId: EndpointNumber; clusterId: ClusterId; commandId: CommandId; } interface CommandStatus extends ResultStatus { kind: "cmd-status"; path: ConcreteCommandPath; commandRef?: number; } interface CommandResponse { kind: "cmd-response"; path: ConcreteCommandPath; commandRef?: number; data: TlvStream; } interface DecodedCommandResponse extends Omit { data: any; } } //# sourceMappingURL=InvokeResult.d.ts.map