import { getChunkName } from "./get-chunk-name.cjs"; //#region ../../node_modules/.pnpm/rolldown@1.0.0/node_modules/rolldown/dist/shared/define-config-5HJ1b9vG.d.mts //#endregion //#region src/types/module-info.d.ts /** @category Plugin APIs */ interface ModuleInfo extends ModuleOptions { /** * @hidden Not supported by Rolldown */ ast: any; /** * The source code of the module. * * `null` if external or not yet available. */ code: string | null; /** * The id of the module for convenience */ id: string; /** * The ids of all modules that statically import this module. */ importers: string[]; /** * The ids of all modules that dynamically import this module. */ dynamicImporters: string[]; /** * The module ids statically imported by this module. */ importedIds: string[]; /** * The module ids dynamically imported by this module. */ dynamicallyImportedIds: string[]; /** * All exported variables */ exports: string[]; /** * Whether this module is a user- or plugin-defined entry point. */ isEntry: boolean; /** * The detected format of the module, based on both its syntax and module definition * metadata (such as `package.json` `type` and file extensions like `.mjs`/`.cjs`/`.mts`/`.cts`). * - "esm" for ES modules (has `import`/`export` statements or is defined as ESM by module metadata) * - "cjs" for CommonJS modules (uses `module.exports`, `exports`, top-level `return`, or is defined as CommonJS by module metadata) * - "unknown" when the format could not be determined from either syntax or module definition metadata * * @experimental */ inputFormat: "es" | "cjs" | "unknown"; } //#endregion //#region src/utils/asset-source.d.ts /** @inline */ /** @inline */ interface ChunkingContext { getModuleInfo(moduleId: string): ModuleInfo | null; } //#endregion //#region src/plugin/index.d.ts type ModuleSideEffects = boolean | "no-treeshake" | null; /** @category Plugin APIs */ /** @category Plugin APIs */ interface CustomPluginOptions { [plugin: string]: any; } /** @category Plugin APIs */ interface ModuleOptions { moduleSideEffects: ModuleSideEffects; /** See [Custom module meta-data section](https://rolldown.rs/apis/plugin-api/inter-plugin-communication#custom-module-meta-data) for more details. */ meta: CustomPluginOptions; invalidate?: boolean; packageJsonPath?: string; } /** @category Plugin APIs */ //#endregion //#region src/create-vocab-chunks.d.ts /** * Gets vocab virtual module details and creates chunks for each language */ declare const createVocabChunks: (id: string, ctx: ChunkingContext) => string | undefined; //#endregion export { createVocabChunks, getChunkName }; //# sourceMappingURL=chunks.d.cts.map