import { P1ContentClient, PRODUCTION_BASE_URL } from '@pantheon-systems/css-client'; import type { AuthMode } from '../auth/P1AuthProvider.js'; export interface P1Config { baseUrl: string; clientBaseUrl?: string; siteId: string; branchId?: string; authMode: AuthMode; enableRealtime?: boolean; wsBaseUrl?: string; enablePresence?: boolean; autoSaveDelay?: number; maxRetries?: number; } export { PRODUCTION_BASE_URL }; /** * An env var set to "" or " " is as good as unset. Whitespace matters: a blank-but- * truthy branch id would slip past the `!branchId` guards downstream, and on the content * path it reaches `?branch=` and 404s every published page. * * Exported for the data layer's own normalization; deliberately not part of the package's * public surface. */ export declare function nonEmpty(value: string | undefined): string | undefined; export declare function createP1Config(envSource: Record, options?: { prefix?: string; overrides?: Partial; }): P1Config; export declare function createNextConfig(overrides?: Partial): P1Config; export declare function createNextContentClient(overrides?: { baseUrl?: string; apiToken?: string; siteId?: string; branchId?: string; }): P1ContentClient | null;