/** * @license * Copyright 2025-2026 Open Home Foundation * SPDX-License-Identifier: Apache-2.0 */ /** * Matter.js Status codes mapped to readable names. * @see MatterSpecification.v142.Core ยง 8.10.1 */ export declare const MatterStatusNames: Record; /** Get readable name for a Matter status code */ export declare function getMatterStatusName(status: number): string; /** Result type for Matter operations with status details */ export interface MatterOperationResult { success: boolean; status: number; statusName: string; } /** Outcome type for batch operations */ export type BatchOutcome = "all_success" | "all_failed" | "partial"; /** Result type for batch Matter operations (multiple entries) */ export interface MatterBatchResult { /** Overall outcome: all succeeded, all failed, or partial */ outcome: BatchOutcome; /** Number of successful operations (status === 0) */ successCount: number; /** Number of failed operations (status !== 0) */ failureCount: number; /** Count of failures per status code, e.g. { 126: 2, 135: 1 } */ errorCounts: Record; /** Human-readable summary message for display */ message: string; } /** Create a successful operation result */ export declare function successResult(): MatterOperationResult; /** Create a failed operation result from a status code */ export declare function failureResult(status: number): MatterOperationResult; /** Create an operation result from a status code (success if 0) */ export declare function resultFromStatus(status: number): MatterOperationResult; /** * Analyze multiple operation results and produce a batch result summary. * @param results Array of objects with a `status` property (0 = success). * If null, undefined, or empty, this is treated as a failed/unknown batch. * @returns MatterBatchResult with outcome, counts, and human-readable message */ export declare function analyzeBatchResults(results: Array<{ status: number; }> | null | undefined): MatterBatchResult; //# sourceMappingURL=matter-status.d.ts.map