import { URI } from '../model/uri'; /** * Cycle-detection stack shared by the embed and foam-query plugins. Callers * `enter` before invoking a markdown renderer for a resource and `exit` * after; if the resource is already on the stack, `enter` returns false and * the caller emits a cycle warning instead of recursing. */ export interface RenderContext { /** Returns false (without pushing) if `uri` is already on the stack. */ enter(uri: URI): boolean; exit(uri: URI): void; has(uri: URI): boolean; /** Snapshot of the stack, deepest first. */ current(): URI[]; } export declare function createRenderContext(): RenderContext; //# sourceMappingURL=render-context.d.ts.map