/** * Registry of dataset assets that can be bundled inside a GCR package. * * Mirrors the Ruby glossarist gem's GcrPackage::DATASET_ASSETS. * Asset types: * - file: a single named file at the GCR root (e.g. bibliography.yaml) * - directory: a named directory with arbitrary nested files (e.g. images/) * * New asset types can be added by appending to DATASET_ASSETS (open/closed). */ declare const DATASET_ASSETS: readonly { path: string; type: string; }[]; declare const FILE_ASSETS: readonly { path: string; type: string; }[]; declare const DIRECTORY_ASSETS: readonly { path: string; type: string; }[]; /** * Find a file asset descriptor by its ZIP path. * @param {string} path * @returns {{ path: string, type: string } | undefined} */ declare function findFileAsset(path: string): { path: string; type: string; } | undefined; /** * Check whether a ZIP path belongs to a directory asset. * Returns the asset descriptor if so, undefined otherwise. * @param {string} zipPath * @returns {{ path: string, type: string } | undefined} */ declare function findDirectoryAssetPath(zipPath: string): { path: string; type: string; } | undefined; /** * Check if a ZIP path is a dataset asset entry. * @param {string} zipPath * @returns {boolean} */ declare function isDatasetAssetPath(zipPath: string): boolean; export { DATASET_ASSETS, FILE_ASSETS, DIRECTORY_ASSETS, findFileAsset, findDirectoryAssetPath, isDatasetAssetPath, }; //# sourceMappingURL=dataset-asset.d.ts.map