import { P as PalbeConfig, d as PalbeRuntime } from './analytics-facade-CyeTfT28.cjs'; export { e as buildRuntime } from './analytics-facade-CyeTfT28.cjs'; import { B as BackendError } from './errors-fDoNdTrJ.cjs'; export { P as PB, c as createBoundClient } from './pb-CcLy3oYj.cjs'; import './index.d-CS4ceNwT.cjs'; import './storage-Nj6JAWej.cjs'; import './pooled-flags-ByrxSmnn.js'; interface EndpointDescriptor { method: string; path: string; /** `{name}` segments consumed as leading call args, in order. */ pathParams?: string[]; /** * 'body' (default for non-GET) | 'query' (serialize input into the URL) | * 'none' (no input arg — options come straight after path params). */ input?: 'body' | 'query' | 'none'; /** wire error code → lift fn; the materializer rethrows the lifted error. */ errors?: Record Error>; /** * The route answers `text/event-stream`. Emitted by the generator for an * operation carrying `x-palbase-sse`, and it changes what the call RETURNS: * an async iterable of frames instead of one parsed body. Without this branch * the generated signature would be a lie — it declares `AsyncIterable` * while the buffered path hands back a single object (measured 2026-08-30, * against a real stack). */ sse?: boolean; } type NamespaceTree = { [key: string]: NamespaceTree | EndpointDescriptor; }; declare function __registerNamespaces(tree: NamespaceTree): void; /** * Called by the generated palbe.gen.ts on import. REPLACES the runtime * (re-runs storage hydration) — safe to call repeatedly, e.g. watch-mode * regen. The namespace registry intentionally survives re-configure: the * gen file re-registers its static descriptors right after. */ declare function __configure(config: PalbeConfig): void; /** * Register a callback that fires synchronously after every successful * `__configure` call (including re-configure / watch-mode regen). * * Returns an unsubscribe function. Safe to call before the first `__configure`. * * Consumed by `palbe/react`; not part of the public `palbe` surface — which is * what the separate `palbe/internal` ENTRY expresses, and the only thing that * may. DO NOT mark this doc comment with the TSDoc internal tag (not even in * prose — the compiler matches the token anywhere in the block): `stripInternal` * in tsconfig.json reads the whole src tree, so the tag deletes this declaration * from the shipped `internal.d.ts` while the JS keeps exporting it, and every * honest importer fails typecheck (WEB-9). */ declare function onConfigured(cb: () => void): () => void; /** The configured runtime, or a guided `notConfigured` throw. Package-internal * (hence the `palbe/internal` entry) but part of THAT entry's shipped surface — * carries no TSDoc internal tag, which `stripInternal` would honour by deleting * this declaration from `internal.d.ts` (see `onConfigured` above). */ declare function getRuntime(): PalbeRuntime; /** Test-only: drop runtime + registered namespaces. */ declare function __reset(): void; export { type EndpointDescriptor, type NamespaceTree, PalbeConfig, PalbeRuntime, __configure, __registerNamespaces, __reset, getRuntime, onConfigured };