/** * @module witness/space/readonly-space-wrapper * * Implements a read-only mounted space wrapper around an underlying IbGibSpaceAny. * Permits all read commands ('get', 'getDependencyGraph', 'latest', etc.) while * rejecting any write or mutation attempts ('put', 'delete', 'persistTransformResult') * with a fail-fast ReadOnlySpaceError. * * Does NOT require registration with Metaspace (zero bootstrap^gib.json side effects). */ import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/types.mjs'; import { SpaceBase_V1, IbGibSpaceAny } from './space-base-v1.mjs'; import { IbGibSpaceData, IbGibSpaceOptionsIbGib, IbGibSpaceRel8ns, IbGibSpaceResultIbGib } from './space-types.mjs'; export type AnySpaceOptionsIbGib = IbGibSpaceOptionsIbGib; export type AnySpaceResultIbGib = IbGibSpaceResultIbGib; /** * Dedicated error thrown whenever a write or delete operation is attempted * against a ReadOnlyMountedSpace. */ export declare class ReadOnlySpaceError extends Error { constructor(message: string); } /** * Transient, read-only wrapper around any concrete IbGibSpaceAny (such as * InnerSpace_V1, NodeFilesystemSpace_V1, or NodeIndexedFilesystemSpace_V1). * * Provides strict CQRS read isolation: * - Read operations ('get', 'latest', 'getDependencyGraph') pass through directly to underlyingSpace. * - Write operations ('put', 'delete') throw fail-fast ReadOnlySpaceError. * - Does not require registration with Metaspace and causes zero updates to bootstrap^gib.json. */ export declare class ReadOnlyMountedSpace extends SpaceBase_V1 implements IbGibSpaceAny { protected lc: string; readonly underlyingSpace: IbGibSpaceAny; constructor(underlyingSpace: IbGibSpaceAny); protected initialize(): Promise; /** * Intercepts witness calls to strictly block write and delete commands * before delegating read commands to the underlying space. */ protected witnessImpl(arg: AnySpaceOptionsIbGib): Promise; protected getImpl(arg: AnySpaceOptionsIbGib): Promise; protected canGetImpl(arg: AnySpaceOptionsIbGib): Promise; protected getLatestAddrsImpl(arg: AnySpaceOptionsIbGib): Promise; protected getLatestIbGibsImpl(arg: AnySpaceOptionsIbGib): Promise; protected getTjpAddrsImpl(arg: AnySpaceOptionsIbGib): Promise; protected getTjpIbGibsImpl(arg: AnySpaceOptionsIbGib): Promise; protected getAddrsImpl(arg: AnySpaceOptionsIbGib): Promise; protected getDependencyGraph(arg: AnySpaceOptionsIbGib): Promise; protected putImpl(_arg: AnySpaceOptionsIbGib): Promise; protected canPutImpl(_arg: AnySpaceOptionsIbGib): Promise; protected deleteImpl(_arg: AnySpaceOptionsIbGib): Promise; protected canDeleteImpl(_arg: AnySpaceOptionsIbGib): Promise; protected persistOptsAndResultIbGibs(_arg: any): Promise; } /** * Creates a transient ReadOnlyMountedSpace wrapping an underlying space. */ export declare function createReadOnlyMountedSpace(underlyingSpace: IbGibSpaceAny): ReadOnlyMountedSpace; //# sourceMappingURL=readonly-space-wrapper.d.mts.map