import { KNativePointer } from '@koalaui/interop';
import type { AstNode } from './peers/AstNode';
export declare class NodeCache {
    private static cache;
    static cached<T extends AstNode>(pointer: KNativePointer, factory: (pointer: KNativePointer) => AstNode): T;
    static get<T extends AstNode>(pointer: KNativePointer): T | undefined;
    static addToCache(pointer: KNativePointer, node: AstNode): void;
    static clear(): void;
}
