/** * @import { * CommandsRecord, * DefineClientOptions, * CommandClient, * } from './types.js' */ /** * Define a type-safe client from a record of commands. * * The returned client exposes a `request(cmd, args)` method whose `cmd` * parameter is constrained to the union of `cmd` values declared by * `commands`, and whose `args` parameter is typed accordingly. * * @template {CommandsRecord} Commands * @param {Commands} commands * @param {DefineClientOptions} options * @returns {CommandClient} */ export function defineClient(commands: Commands, options: DefineClientOptions): CommandClient; import type { CommandsRecord } from './types.js'; import type { DefineClientOptions } from './types.js'; import type { CommandClient } from './types.js'; //# sourceMappingURL=client.d.ts.map