/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { MaybePromise } from "@matter/general"; import { ModeBase } from "@matter/types/clusters/mode-base"; import { LaundryWasherModeBehavior } from "./LaundryWasherModeBehavior.js"; /** * This is the default server implementation of {@link LaundryWasherModeBehavior}. */ export declare class LaundryWasherModeServer extends LaundryWasherModeBehavior { #private; initialize(): MaybePromise; /** * This command is used to change device modes. * On receipt of this command the device shall respond with a ChangeToModeResponse command. * * The default implementation automatically validates the new mode against the supported modes and returns an error * if the new mode is not supported. If the new mode is supported, the current mode is updated to the new mode. * * If you need to override this with extra validation logic you can use * `ModeUtils.assertModeChange(this.state.supportedModes, this.state.currentMode, newMode)` * to just execute the validation and add your own validation requirements before or after these standard checks. * The above method returns a `ModeBase.ChangeToModeResponse` object that you can use to return the result of the * validation. */ changeToMode({ newMode }: ModeBase.ChangeToModeRequest): MaybePromise; } //# sourceMappingURL=LaundryWasherModeServer.d.ts.map