/** * @module witness/space/proxy-readonly-space/proxy-readonly-space-v1 * * Implements ProxyReadonlySpace_V1 for Mode 3: Remote Server Browsing. * * An isomorphic IbGibSpaceAny witness that proxies read calls ('get', 'canGet', * 'getLatestAddrs') over HTTP to identity+cosmos scoped endpoints, validates all * incoming ibGib records with validateIbGibIntrinsically, and caches them in memory. * * Rejects any write or mutation attempt ('put', 'delete') with ReadOnlySpaceError. */ import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs'; import { SpaceBase_V1, IbGibSpaceAny } from '../space-base-v1.mjs'; import { AnySpaceOptionsIbGib, AnySpaceResultIbGib } from '../readonly-space-wrapper.mjs'; import { B2tFSSnapshotIbGib_V1 } from '../../../cosmology/branching/snapshot/snapshot-types.mjs'; import { ProxyReadonlySpaceConstructorOpts, ProxyReadonlySpaceData_V1 } from './proxy-readonly-space-types.mjs'; export declare class ProxyReadonlySpace_V1 extends SpaceBase_V1 implements IbGibSpaceAny { protected lc: string; private _serverBaseUrl; private _identityHandle; private _cosmosName; private _galaxyName?; private _branchName?; private _cacheSpace?; private _fetchFn; private _snapshotIbGib?; private _snapshotTjpMap; private _fetchQueue; private _isProcessingQueue; constructor(initialData?: ProxyReadonlySpaceData_V1, initialRel8ns?: any, opts?: ProxyReadonlySpaceConstructorOpts); protected initialize(): Promise; get serverBaseUrl(): string; get identityHandle(): string; get cosmosName(): string; get galaxyName(): string | undefined; get branchName(): string | undefined; get cacheSpace(): IbGibSpaceAny | undefined; get snapshotIbGib(): B2tFSSnapshotIbGib_V1 | undefined; set snapshotIbGib(snapshot: B2tFSSnapshotIbGib_V1 | undefined); private updateSnapshotIndex; setGalaxyAndBranch(galaxyName?: string, branchName?: string): void; /** * Resolves a scoped URL for this tenant and cosmos. */ private buildScopedUrl; /** * Raw fetch of a single ibGib node over HTTP with intrinsic verification. */ private doRawFetchRemoteIbGib; /** * Processes the serialized fetch queue in a single critical section: * 1. Quickly filters all addrs in queue against cache space, resolving cached items immediately. * 2. Fetches the next non-cached ibGib, verifies intrinsically, and puts into cache space. * 3. Re-filters remaining queue against cache space and repeats until queue is drained. */ private processFetchQueue; /** * Enqueues an address for serialized remote fetching with dynamic cache filtering. */ private fetchRemoteIbGib; protected witnessImpl(arg: AnySpaceOptionsIbGib): Promise; protected canPut(arg: AnySpaceOptionsIbGib): Promise; protected canDelete(arg: AnySpaceOptionsIbGib): Promise; protected getImpl(arg: AnySpaceOptionsIbGib): Promise; protected canGetImpl(arg: AnySpaceOptionsIbGib): Promise; /** * Loads the snapshot manifest stone for this galaxy and branch from the server if not already loaded. */ loadSnapshot(): Promise; protected getLatestAddrsImpl(arg: AnySpaceOptionsIbGib): Promise; protected putImpl(_arg: AnySpaceOptionsIbGib): Promise; protected deleteImpl(_arg: AnySpaceOptionsIbGib): Promise; protected persistOptsAndResultIbGibs(_arg: any): Promise; } //# sourceMappingURL=proxy-readonly-space-v1.d.mts.map