import type * as Pinnacle from "../index.mjs"; /** * Send a form from an RCS agent. `from` must be an `agent_*` id. */ export interface SendFormViaRcsParams { /** RCS agent id (`agent_*`). */ from: string; /** Recipient phone in E.164. When present Pinnacle delivers the form URL via RCS (or the configured fallback) and FORM.SUBMISSION fires with `submission.to` populated. When omitted the call returns a submission URL without dispatching any message and the webhook later fires with `submission.to: null`. */ to?: string; /** Existing form id or an inline definition that mints a new form for this send. */ form: SendFormViaRcsParams.Form; /** When RCS is unavailable on the recipient's device, fall back to SMS from this number. Requires `to`. */ fallback?: SendFormViaRcsParams.Fallback; options?: Pinnacle.SendFormOptions; } export declare namespace SendFormViaRcsParams { /** * Existing form id or an inline definition that mints a new form for this send. */ type Form = Pinnacle.FormIdReference | Pinnacle.FormDefinition; /** * When RCS is unavailable on the recipient's device, fall back to SMS from this number. Requires `to`. */ interface Fallback { /** SMS phone in E.164 to deliver from when the recipient can't receive RCS. */ from: string; } }