/** * Option validation and request-body building for `send`, split out of `send.ts` * (Issue #4128). */ import type { SendOptions } from '../types'; import { type ApiClient } from '../utils/api-client'; import type { RoleAssignmentInput } from '../../types/agent-roles'; /** Option checks before any side effect. Returns --duration in ms. A mocked `process.exit` returns, so nothing here stops early. */ export declare function validateSendArgs(worktreeId: string, message: string | undefined, options: SendOptions): number; /** --model checks against the resolved agent. */ export declare function validateSendModel(options: SendOptions, agent: string | undefined): void; /** * The `--expect-*` flags as the `/send` field that carries them to the last check * before the first key, or undefined when none was given (Issue #4116). */ export declare function expectedRoleOf(options: SendOptions): Record | undefined; /** * `--new-conversation` applies to a stopped OpenCode V1 session and nothing else * (Issue #4133). `POST /send` ignores the field anywhere else, without saying so, so * this is the only place that can refuse it. Read before anything with a side effect. * * What remains: a start between this read and the send. Closing that takes the API. * * @throws A usage error (exit 2) for anything but a session known to be stopped */ export declare function assertNewConversationApplies(client: ApiClient, worktreeId: string, agent: string | undefined, instanceId: string | undefined): Promise; /** The `/send` request body. */ export declare function buildSendBody(content: string | undefined, agent: string | undefined, instanceId: string | undefined, options: SendOptions, role: { assignment: RoleAssignmentInput | undefined; expected: Record | undefined; }): Record; //# sourceMappingURL=send-validation.d.ts.map