import { AuthError, ResolveTokenInput, Wiki, WikiDnsRecord, WikiProvisionOpts, WikiProxyConfig } from "@theholocron/cli"; //#region src/capabilities/wiki.d.ts declare const FERN_VERSION = "5.114.1"; interface FernWikiOptions { /** Absolute path to the working repo root. Injected by the loader from RuntimeContext. */ repoRoot?: string; /** Active org name (e.g. "theholocron"). Injected by the loader from RuntimeContext. */ org?: string; /** * "owner/name" repo coordinate. Injected by the loader from RuntimeContext. * Used to derive the per-repo basepath when multi-source custom domain is configured. */ repo?: string; /** * Base domain for the Fern docs site (e.g. "wiki.theholocron.dev"). * * When provided without a path, the repo name is appended automatically: * domain "wiki.theholocron.dev" + repo "owner/holocron" * → custom-domain: wiki.theholocron.dev/holocron * → multi-source: true * * You can also supply the full path explicitly: * domain "wiki.theholocron.dev/holocron" * * Note: password protection is configured in the Fern Dashboard * (https://dashboard.buildwithfern.com) — it is not configurable via docs.yml. */ domain?: string; /** * Fern workspace org slug. Defaults to `org` (the GitHub org name). * Set this explicitly when the Fern workspace name differs from the * GitHub org — e.g. the workspace was registered as "holocron" while * the GitHub org is "theholocron". */ fernOrg?: string; /** * One-line description shown on the global product switcher card. * Falls back to the top-level `description` field in `holocron.config.ts` * when omitted. Only used by `holocron sync --steps wiki`. */ subtitle?: string; /** * Font Awesome icon class for the product switcher card (e.g. `"fa-duotone fa-gear"`). * Only used by `holocron sync --steps wiki`. */ icon?: string; } declare class FernWiki implements Wiki { private readonly opts; readonly key: "wiki"; readonly providerName = "fern"; constructor(opts: FernWikiOptions); provision(callOpts?: WikiProvisionOpts): Promise; proxyConfig(): WikiProxyConfig | null; dnsRecord(): WikiDnsRecord | null; } //#endregion //#region src/auth.d.ts declare const resolveToken: (input?: ResolveTokenInput) => string; //#endregion //#region src/index.d.ts type FernPluginOptions = FernWikiOptions; declare function wiki(opts: FernPluginOptions): Wiki; declare function createPlugin(options?: FernPluginOptions): { name: string; capabilities: { wiki: () => Wiki; }; }; //#endregion export { AuthError, FERN_VERSION, FernPluginOptions, FernWiki, type FernWikiOptions, type ResolveTokenInput, createPlugin, resolveToken, wiki };