/** * Firefly client factory — wires our TokenCache into the official SDK's * TokenProvider contract. * * The SDK accepts a `ClientConfig` with a `tokenProvider` interface. We adapt * our TokenCache to that interface so the SDK's per-request auth flow uses * our cache (refresh-before-expiry, in-flight dedupe). This keeps a single * source of truth for token lifecycle — no duplicate caches. */ import { FireflyClient } from "@adobe/firefly-apis"; import type { Credentials } from "./credentials.js"; import type { TokenCache } from "./token-cache.js"; /** Returns a singleton FireflyClient bound to our TokenCache. */ export declare function getFireflyClient(creds: Credentials, tokenCache: TokenCache): FireflyClient; //# sourceMappingURL=firefly-client.d.ts.map