import { DecoratorTransformOptions, DecoratorTransformResult, ImageResizeFn, ReadFileFn, processGlb, processImage, transformDecorators } from "@zappar/mattercraft-transformers"; //#region src/index.d.ts declare const ZCOMP_FILTER: RegExp; declare const ZVALUES_FILTER: RegExp; declare const GLB_FILTER: RegExp; declare const IMAGE_FILTER: RegExp; declare const MODULE_FILTER: RegExp; declare const ASSET_FILTER: RegExp; /** * Rewrites `new URL('npm:pkg/path', import.meta.url)` to use the resolved * path from node_modules. This implements Parcel's `npm:` URL scheme so that * bundlers emit the referenced files as assets. * * Returns null if the source contains no npm: URLs. */ declare function resolveNpmUrls(code: string, importer: string): string | null; declare const readFileFn: ReadFileFn; declare const resizeImageFn: ImageResizeFn; declare function loadZcomp(id: string): { code: string; }; declare function loadZvalues(id: string): { code: string; }; interface MattercraftPluginOptions { /** Global GLTF optimization settings (from project-level .gltf.zbundle). */ gltfSettings?: Parameters[2]["globalSettings"]; /** Global image optimization settings (from project-level .images.zbundle). */ imageSettings?: Parameters[2]["globalSettings"]; } declare function transformGlb(data: Uint8Array, filePath: string, options?: MattercraftPluginOptions): Promise; declare function transformImage(data: Uint8Array, filePath: string, options?: MattercraftPluginOptions): Promise<{ data: Uint8Array; newExtension?: string; }>; //#endregion export { ASSET_FILTER, type DecoratorTransformOptions, type DecoratorTransformResult, GLB_FILTER, IMAGE_FILTER, MODULE_FILTER, MattercraftPluginOptions, ZCOMP_FILTER, ZVALUES_FILTER, loadZcomp, loadZvalues, readFileFn, resizeImageFn, resolveNpmUrls, transformDecorators, transformGlb, transformImage };