import { AxiosPromise } from "axios" ; import { Resources } from "../../../constants" ; import XAPI from "../../../XAPI" ; import { StatementResponseWithAttachments , Statement } from ".." ; import { GetVoidedStatementParams , GetVoidedStatementParamsWithAttachments , GetVoidedStatementParamsWithoutAttachments , } from "./GetVoidedStatementParams" ; export function getVoidedStatement ( this , params ) ; export function getVoidedStatement ( this , params ) ; export function getVoidedStatement ( this , params ) { return this . requestResource ( { resource : Resources . STATEMENT , queryParams : { voidedStatementId : params . voidedStatementId , ... ( ! ! params . attachments && { attachments : params . attachments } ) , ... ( ! ! params . format && { format : params . format } ) , } , requestOptions : { useCacheBuster : params . useCacheBuster } , } ) ; }