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

//#region src/legal.ts
const getLegalsKeys = () => getKeys(legalEntry);
const getLegals = async (locale = defaultLocale) => getFiles(legalEntry, locale);
const getLegal = async (docName, locale = defaultLocale) => getFile(legalEntry, docName, locale);
const getLegalMetadataRecord = async (locale = defaultLocale) => getFileMetadataRecord(legalEntry, locale);
const getLegalMetadata = async (docName, locale = defaultLocale) => getFileMetadata(legalEntry, docName, locale);
const getLegalMetadataBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileMetadataBySlug(legalEntry, slugs, locale, strict);
const getLegalBySlug = async (slugs, locale = defaultLocale, strict = false) => await getFileBySlug(legalEntry, slugs, locale, strict);

//#endregion
export { getLegal, getLegalBySlug, getLegalMetadata, getLegalMetadataBySlug, getLegalMetadataRecord, getLegals, getLegalsKeys };
//# sourceMappingURL=legal.mjs.map