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

//#region src/doc.ts
const getDocsKeys = () => getKeys(docsEntry);
const getDocs = async (locale = defaultLocale) => await getFiles(docsEntry, locale);
const getDoc = async (docName, locale = defaultLocale) => await getFile(docsEntry, docName, locale);
const getDocMetadataRecord = async (locale = defaultLocale) => await getFileMetadataRecord(docsEntry, locale);
const getDocMetadata = async (docName, locale = defaultLocale) => await getFileMetadata(docsEntry, docName, locale);
const getDocMetadataBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileMetadataBySlug(docsEntry, slugs, locale, strict);
const getDocBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileBySlug(docsEntry, slugs, locale, strict);

//#endregion
export { getDoc, getDocBySlug, getDocMetadata, getDocMetadataBySlug, getDocMetadataRecord, getDocs, getDocsKeys };
//# sourceMappingURL=doc.mjs.map