import type { CoValue, MaybeLoaded, RefEncoded } from "../internal.js"; import { SubscriptionScope } from "./SubscriptionScope.js"; export declare function getSubscriptionScope(value: D): SubscriptionScope; /** Autoload internals */ /** * Given a coValue, access a child coValue by key * * By subscribing to a given key, the subscription will automatically react to the id changes * on that key (e.g. deleting the key value will result on unsubscribing from the id) */ export declare function accessChildByKey(parent: D, childId: string, key: string): MaybeLoaded; /** * Given a coValue, access a child coValue by id * * By subscribing to a given id, the subscription becomes permanent and will unsubscribe * only when the root subscription scope is destroyed. * * Used for refs that never change (e.g. CoFeed entries, CoMap edits) */ export declare function accessChildById(parent: CoValue, childId: string, schema: RefEncoded): MaybeLoaded; //# sourceMappingURL=index.d.ts.map