import { APIResource } from "../../core/resource.js"; import * as AgentAPI from "../senders/agent/agent.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Senders extends APIResource { /** * Make the agent answer on this sender. An agent can serve several senders; a * sender answers with at most one agent, so connecting one that is already in use * returns `400` naming the agent that holds it. * * @example * ```ts * const response = await client.agents.senders.connect( * 'agentId', * { senderId: 'senderId' }, * ); * ``` */ connect(agentID: string, body: SenderConnectParams, options?: RequestOptions): APIPromise; /** * Stop the agent answering on this sender. The agent's primary sender is part of * the agent itself and cannot be disconnected here. * * @example * ```ts * await client.agents.senders.disconnect('senderId', { * agentId: 'agentId', * }); * ``` */ disconnect(senderID: string, params: SenderDisconnectParams, options?: RequestOptions): APIPromise; } export interface SenderConnectResponse { /** * AI Agent configuration for a sender. */ agent: AgentAPI.Agent; } export interface SenderConnectParams { /** * Sender to connect. */ senderId: string; } export interface SenderDisconnectParams { /** * Agent ID. */ agentId: string; } export declare namespace Senders { export { type SenderConnectResponse as SenderConnectResponse, type SenderConnectParams as SenderConnectParams, type SenderDisconnectParams as SenderDisconnectParams, }; } //# sourceMappingURL=senders.d.ts.map