import type { CommonHttpClientFetchRequest, CommonHttpClientFetchResponse } from "api-typescript-generator/openapi-client"; import type { AnyResponse } from "./common"; /** * Minimal type stub for `@forge/api`'s `ExternalAuthFetchMethods`. */ interface ForgeExternalAuthFetchMethods { fetch(url: string, init?: Record): Promise; } /** * The product name of the Atlassian product instance supported by `createForgeApiWithProviderFetch`. */ type ApiClientForgeApiWithProviderProductName = "jira" | "confluence"; /** * Forge API provider-based client options for JIRA. * * @category API Client Constructor Options */ export interface ApiClientForgeApiWithProviderOptions { /** * Result of `forgeApi.asUser().withProvider(...)` call. */ forgeApiWithProvider: ForgeExternalAuthFetchMethods; /** * The cloud ID of the Atlassian product instance. */ cloudId: string; } /** * Creates a fetch function that uses the provided Forge API with provider to make requests. */ export declare function createForgeApiWithProviderFetch({ forgeApiWithProvider, cloudId }: ApiClientForgeApiWithProviderOptions, productName: ApiClientForgeApiWithProviderProductName): (url: URL, request: CommonHttpClientFetchRequest) => Promise; export {};