/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { ReadContext } from '../@types/db-types.js'; export interface ReadContextScope { root: ReadContext; ancestry: readonly object[]; } export declare function getReadContextScope(readContext: ReadContext): ReadContextScope; /** Resolve a scoped hook context to the ReadContext for its logical request. */ export declare function resolveReadContextRoot(readContext: ReadContext): ReadContext; /** * Carry hook ancestry by object identity, not by a forgeable public property. * All mutable read-budget state still delegates to the logical root context. */ export declare function createHookReadContext(parent: ReadContextScope, entry: object): ReadContext;