import { S as SEOFasterConfig, a as SEOFasterClient } from './types-2c-alqW2.mjs'; export { A as Article, c as ArticleAuthor, b as ArticleContent, d as ArticleListResponse, B as BlogArticleParam, m as BlogListParam, l as BlogPaginatedParam, i as CachedClient, C as CachedClientConfig, g as FAQ, f as FeaturedImage, F as FetchArticlesOptions, e as FetchRelatedArticlesOptions, h as SlimArticle, j as StaticParamsGeneratorConfig, k as StaticParamsResult } from './types-2c-alqW2.mjs'; export { createCachedClient } from './cache.mjs'; export { createStaticParamsGenerator } from './static.mjs'; /** * Create a SEO Faster API client * * @example * ```typescript * import { createSEOFasterClient } from '@codepark-apps/seofaster-nextjs'; * * const client = createSEOFasterClient({ * apiKey: process.env.SEOFASTER_SECRET_KEY!, * }); * * // Fetch articles * const { articles } = await client.getArticles({ limit: 10 }); * * // Fetch single article * const article = await client.getArticleBySlug('my-article'); * ``` */ declare function createSEOFasterClient(config: SEOFasterConfig): SEOFasterClient; /** * Singleton / lazy-init helper (B.11). * * Drops 5 lines of "create a client in lib/seofaster.ts" boilerplate from * every consumer project. Reads `SEOFASTER_SECRET_KEY` (or the override * passed in opts) once + caches the instance for the lifetime of the * Node module — which in Next.js means one client per server function * cold start, reused across requests. * * Usage: * import { getSEOFasterClient } from '@codepark-apps/seofaster-nextjs'; * * // In any server component / route handler: * const articles = await getSEOFasterClient().getArticles({ limit: 10 }); * * Override env via opts when you need multiple clients (multi-workspace, * staging vs prod). Calling with opts skips the cache and returns a fresh * instance — caching is keyed on the no-args fast path. */ declare function getSEOFasterClient(opts?: Partial): SEOFasterClient; /** * Test/dev escape hatch — drop the cached client so the next call * re-reads env. Never needed in production. */ declare function _resetSEOFasterClientCache(): void; export { SEOFasterClient, SEOFasterConfig, _resetSEOFasterClientCache, createSEOFasterClient, getSEOFasterClient };