import type * as Phonic from "../index.mjs";
export interface Tool {
    /** The ID of the tool. */
    id: string;
    /** The name of the tool. */
    name: string;
    /** Description of what the tool does. */
    description: string;
    project: Tool.Project;
    /** The type of tool. */
    type: Tool.Type;
    /** Mode of operation - sync waits for response, async continues without waiting. */
    execution_mode?: Tool.ExecutionMode | undefined;
    /** Array of parameter definitions for the tool. */
    parameters: Phonic.ToolParameter[];
    /** HTTP method for webhook tools. */
    endpoint_method?: Tool.EndpointMethod | undefined;
    /** URL for webhook tools. */
    endpoint_url?: string | undefined;
    /** Headers for webhook tools. */
    endpoint_headers?: Record<string, string> | undefined;
    /** Timeout in milliseconds for webhook tools. */
    endpoint_timeout_ms?: number | undefined;
    /** Timeout in milliseconds for WebSocket tool responses. */
    tool_call_output_timeout_ms?: number | undefined;
    /** The E.164 formatted phone number to transfer calls to. Set to null if the agent should determine the phone number. */
    phone_number?: (string | null) | undefined;
    /** DTMF digits to send after the transfer connects (e.g., "1234"). Defaults to null. Ignored when dynamic_dtmf is true. */
    dtmf?: (string | null) | undefined;
    /** When true, the agent determines the DTMF digits at call time (and may choose to send none); the static dtmf is ignored. Only sent when use_agent_phone_number is true (not on a SIP REFER transfer). */
    dynamic_dtmf?: boolean | undefined;
    /** When true, Phonic will transfer the call using the agent's phone number. When false, Phonic will transfer the call using the phone number of the party to whom the agent is connected. This is only available for built_in_transfer_to_phone_number tools. */
    use_agent_phone_number?: boolean | undefined;
    /** When true, Phonic will listen in and tell the user if the transfer hits voicemail. This is only available for built_in_transfer_to_phone_number tools when use_agent_phone_number is true. */
    detect_voicemail?: boolean | undefined;
    /** Array of agent names that the LLM can choose from when transferring. Required for built_in_transfer_to_agent tools. */
    agents_to_transfer_to?: string[] | undefined;
    /** When true, forces the agent to speak before executing the tool. */
    require_speech_before_tool_call?: boolean | undefined;
    /** If true, the agent will wait to finish speaking before executing the tool. This is only available for custom_webhook and custom_websocket tools. */
    wait_for_speech_before_tool_call?: boolean | undefined;
    /** When true, forbids the agent from speaking after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
    forbid_speech_after_tool_call?: boolean | undefined;
    /** When true, allows the agent to chain and execute other tools after executing the tool. Available for custom_context, custom_webhook and custom_websocket tools. */
    allow_tool_chaining?: boolean | undefined;
    /** The agent doesn't typically wait for the response of async custom_websocket tools. When true, makes the agent wait for a response, not call other tools and inform the user of the result. Only available for async custom_websocket tools. */
    wait_for_response?: boolean | undefined;
    /** The static context returned to the agent. Only present for custom_context tools. */
    context?: string | undefined;
}
export declare namespace Tool {
    interface Project {
        id: string;
        name: string;
    }
    /** The type of tool. */
    const Type: {
        readonly CustomContext: "custom_context";
        readonly CustomWebhook: "custom_webhook";
        readonly CustomWebsocket: "custom_websocket";
        readonly BuiltInTransferToPhoneNumber: "built_in_transfer_to_phone_number";
        readonly BuiltInTransferToAgent: "built_in_transfer_to_agent";
    };
    type Type = (typeof Type)[keyof typeof Type];
    /** Mode of operation - sync waits for response, async continues without waiting. */
    const ExecutionMode: {
        readonly Sync: "sync";
        readonly Async: "async";
    };
    type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode];
    /** HTTP method for webhook tools. */
    const EndpointMethod: {
        readonly Get: "GET";
        readonly Post: "POST";
    };
    type EndpointMethod = (typeof EndpointMethod)[keyof typeof EndpointMethod];
}
