import { Cache } from '../cache/index.js'; import { Env } from '../boundary/components/env/types.js'; import { ScopeHandle } from './types.js'; /** * Internal constructor for a {@link ScopeHandle}. Called from inside * `App()` so the enclosing Env shape `E` is captured at the type * level. The optional `cache` is the same value `App({ cache })` was * constructed with — resources declared via `scope.Resource` * share that cache. `getEnv` resolves the live Env from the enclosing * `app.Boundary` so cache-key scoping works for sync `.get()` reads. * * @internal */ export declare function createScope(cache?: Cache, getEnv?: () => Env | undefined): ScopeHandle;