import { Extension, type Document, type WriterContext } from '@gltf-transform/core'; /** * A write-only glTF-Transform extension that runs `fn` against the finished glTF JSON. * * glTF-Transform has no model for VRM's extensions and does not need one here: every VRM block is built from * data that was already resolved into plain JSON, and the only thing it must not get wrong is the node, mesh and * material INDICES - which are only known while the writer runs, through `WriterContext`'s index maps. A * post-hoc patch of the output bytes would have to recompute them; this hook is handed them. */ export type JsonWriteFn = (ctx: WriterContext) => void; export type ExtensionCtor = new (document: Document) => Extension; export declare function jsonExtension(name: string, fn: JsonWriteFn): ExtensionCtor;