import { CallProtocolInput } from '../inputs'; import { CallIdUnion, ErrorUnion } from '../outputs'; /** * Creates a new call * @param {Object} params * @param {number} [params.userId] - Identifier of the user to be called * @param {CallProtocolInput} [params.protocol] - Description of the call protocols * supported by the client * @param {Object} state * @returns {CallIdUnion | ErrorUnion} */ export declare type CreateCallMethod = (params: CreateCallParams, state?: Record) => Promise; export interface CreateCallParams { /** Identifier of the user to be called */ userId?: number; /** Description of the call protocols supported by the client */ protocol?: CallProtocolInput; }