export type ClosingIssueReference = { key: string; number: number; owner: string | undefined; repo: string | undefined; }; /** * GitHub closing keywords (close/closes/closed, fix/fixes/fixed, resolve/resolves/resolved, * optionally followed by a colon) followed by `#N`, `owner/repo#N` or a * `https://github.com/owner/repo/issues/N` URL. Owner and repo are lowercased and references are * deduplicated by key, in first-seen order. * * The body is scanned as raw text: closing keywords inside HTML comments or code spans/fences (for * example a PR template example) are reported too. Callers that must ignore them blank those spans * out before calling, as `parseNonClosingRefs` callers do with their scoped text. */ export declare function parseClosingIssueReferences(body: string): ClosingIssueReference[]; export declare function hasClosingIssueReference(body: string): boolean; /** `#N` for a same-repository reference, otherwise lowercased `owner/repo#N`. */ export declare function formatReferenceKey(ref: { number: number; owner?: string | undefined; repo?: string | undefined; }): string;