import { ExtensionPack, SdmContext } from "@atomist/sdm"; import { JiraCache } from "./support/cache/jiraCache"; /** * This type represents the function used to retrieve credentials that are returned as an HTTP Authorization Header */ export declare type JiraAuthenticator = (ctx?: SdmContext) => Promise<{ Authorization: string; }>; /** * The default Authenticator. Always uses service account for authentication to the REST API. * @param ctx */ export declare const defaultJiraAuthenticator: JiraAuthenticator; export declare function getJiraAuth(ctx?: SdmContext): Promise<{ Authorization: string; }>; export declare const jiraSupport: (authenticator?: JiraAuthenticator, cache?: JiraCache) => ExtensionPack; export interface JiraConfig { /** * Base URL to your JIRA Server instance */ url: string; /** * If using dynamic channels (or the built-in JIRA approval goal), must supply this value to lookup * VCS repo details in JIRA. */ vcstype: string; /** * Username for connecting to your JIRA Server */ user: string; /** * Password for connecting to your JIRA Server */ password: string; }