import { defaultLocale, getFile, getFileBySlug, getFileMetadata, getFileMetadataBySlug, getFileMetadataRecord, getFiles, getKeys } from "./common.mjs";
import { blogEntry } from "./generated/blog.entry.mjs";

//#region src/blog.ts
const getBlogsKeys = () => getKeys(blogEntry);
const getBlogs = async (locale = defaultLocale) => await getFiles(blogEntry, locale);
const getBlog = async (docName, locale = defaultLocale) => await getFile(blogEntry, docName, locale);
const getBlogMetadataRecord = async (locale = defaultLocale) => await getFileMetadataRecord(blogEntry, locale);
const getBlogMetadata = async (docName, locale = defaultLocale) => await getFileMetadata(blogEntry, docName, locale);
const getBlogMetadataBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileMetadataBySlug(blogEntry, slugs, locale, strict);
const getBlogBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileBySlug(blogEntry, slugs, locale, strict);

//#endregion
export { getBlog, getBlogBySlug, getBlogMetadata, getBlogMetadataBySlug, getBlogMetadataRecord, getBlogs, getBlogsKeys };
//# sourceMappingURL=blog.mjs.map