import { SdmContext } from "@atomist/sdm"; /** * This function retrieves details from JIRA. You must supply the full "self" * url to the endpoint to retrieve the data from. Using the generic you can retrieve many * types of data with this function. * * example: const result = await jiraSelfUrl("http://localhost:8080/rest/api/2/user?username=matt"); * * @param {string} jiraSelfUrl Supply the api endpoint to the given user * @param {boolean} cache Can we store the result of this query? Default false * @param {number} ttl If we cache, how long should we store this? Default 3600 * @param {HandlerContext} ctx Passed to supply detail to getJiraAuth. Where present in calling functions, should be passed in. * @returns {T} */ export declare function getJiraDetails(jiraSelfUrl: string, cache?: boolean, ttl?: number, ctx?: SdmContext): Promise; /** * Return the list of repos associated with this JIRA issue (ie a commit is linked to this Issue). * Note: This is dependant on the VCS type in use which needs to be supplied in your configuration * see docs for details * * @param {issueId} issueId The ID of the JIRA issue. * @returns {string[]} List of repo names */ export declare function getJiraIssueRepos(issueId: string): Promise;