matrix-react-sdk
Version:
SDK for matrix.org using React
40 lines (39 loc) • 1.37 kB
TypeScript
interface IOpts {
label?: string;
userText?: string;
sendLogs?: boolean;
progressCallback?: (string: any) => void;
}
/**
* Send a bug report.
*
* @param {string} bugReportEndpoint HTTP url to send the report to
*
* @param {object} opts optional dictionary of options
*
* @param {string} opts.userText Any additional user input.
*
* @param {boolean} opts.sendLogs True to send logs
*
* @param {function(string)} opts.progressCallback Callback to call with progress updates
*
* @return {Promise} Resolved when the bug report is sent.
*/
export default function sendBugReport(bugReportEndpoint: string, opts?: IOpts): Promise<void>;
/**
* Downloads the files from a bug report. This is the same as sendBugReport,
* but instead causes the browser to download the files locally.
*
* @param {object} opts optional dictionary of options
*
* @param {string} opts.userText Any additional user input.
*
* @param {boolean} opts.sendLogs True to send logs
*
* @param {function(string)} opts.progressCallback Callback to call with progress updates
*
* @return {Promise} Resolved when the bug report is downloaded (or started).
*/
export declare function downloadBugReport(opts?: IOpts): Promise<void>;
export declare function submitFeedback(endpoint: string, label: string, comment: string, canContact?: boolean): Promise<void>;
export {};