import { type IssueEnvelope, type NormalizedIssueEnvelope } from './types.js';
export interface JiraAdapterConfig {
    baseUrl?: string;
    host?: string;
    email?: string;
    apiToken?: string;
    projectKey?: string;
    jql?: string;
}
export declare function normalizeJiraIssue(rawIssue: unknown): IssueEnvelope;
export declare function normalizeJiraIssueToEnvelope(rawIssue: unknown): NormalizedIssueEnvelope;
export declare function buildJiraTicketDescription(envelope: NormalizedIssueEnvelope): string;
export declare function buildJiraMetadata(envelope: NormalizedIssueEnvelope): Record<string, string>;
export declare function buildJiraSpawnContextMessage(envelope: NormalizedIssueEnvelope, additionalMessage?: string): string;
export declare function buildJiraIssueChoiceCommand(issueKey: string, projectId?: string): string;
export declare function getJiraIssueByKey(configInput: JiraAdapterConfig, issueKey: string, options?: {
    fetchImpl?: typeof fetch;
}): Promise<NormalizedIssueEnvelope | null>;
export declare function listJiraIssues(configInput: JiraAdapterConfig, options?: {
    limit?: number;
    jql?: string;
    fetchImpl?: typeof fetch;
}): Promise<NormalizedIssueEnvelope[]>;
