/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import type { Behavior } from "#behavior/Behavior.js"; import type { ActionContext } from "#behavior/context/ActionContext.js"; import { LocalActorContext } from "#behavior/context/server/LocalActorContext.js"; import type { Endpoint } from "#endpoint/Endpoint.js"; import type { EndpointType } from "#endpoint/type/EndpointType.js"; export type Commands = { [K in keyof T["behaviors"]]: Commands.OfBehavior; }; export declare function Commands(endpoint: Endpoint): Commands; export declare namespace Commands { type CommandContext = ActionContext | LocalActorContext.Options; interface Command unknown = (arg: unknown) => unknown> { (...args: Parameters extends [] ? [input?: void, context?: CommandContext] : [input: Parameters[0], context?: CommandContext]): Promise>>; } type OfBehavior = { [K in keyof InstanceType]: InstanceType[K] extends (arg: any) => any ? Command[K]> : never; }; } //# sourceMappingURL=Commands.d.ts.map