/** * BridgeDocHandle — T20-b port from dsh-perm-gate (bridge-scope.ts, the * client half of the settings bridge). * * Shape-compatible with the native durable-settings handle (configForms.get / * settingsScope.bind subset): getSnapshot/subscribe/set. Reads POST * /api//settings/describe, writes POST …/mutate (ops forwarded to the * host settings service); a successful write re-describes and refreshes the * snapshot (optimistic refresh, no local second copy of state — the service * stays authoritative). The initial describe fetch starts at construction; * the snapshot is `pending` until it lands, and the family card renders its * pinned default meanwhile. * * The route derivation must stay character-identical to the server side * (src/bridge.ts bridgeRoutesFor); the client tsconfig only includes * src/client, so this half holds its own copy and the parity test pins both. */ import type { SettingsDocHandle } from './compat.js'; /** The native handle's snapshot shape — the bridge payload cast at the boundary. */ type DocSnapshot = ReturnType; export declare class BridgeDocHandle implements SettingsDocHandle { private snapshot; private listeners; private revision; private inflight; private readonly routes; constructor(ns: string); /** The bridge transport is shape-agnostic; the ns payload narrows at this boundary. */ getSnapshot(): DocSnapshot; subscribe(listener: () => void): () => void; set(field: string, value: unknown): Promise; private notify; private request; private refresh; private mutate; } export {}; //# sourceMappingURL=bridge-scope.d.ts.map