import { ErrorUnion, OkUnion } from '../outputs'; /** * Discards a call * @param {Object} params * @param {number} [params.callId] - Call identifier * @param {boolean} [params.isDisconnected] - True, if the user was disconnected * @param {number} [params.duration] - The call duration, in seconds * @param {string} [params.connectionId] - Identifier of the connection used during * the call * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type DiscardCallMethod = (params: DiscardCallParams, state?: Record) => Promise; export interface DiscardCallParams { /** Call identifier */ callId?: number; /** True, if the user was disconnected */ isDisconnected?: boolean; /** The call duration, in seconds */ duration?: number; /** Identifier of the connection used during the call */ connectionId?: string; }