UNPKG

@paroicms/server

Version:
28 lines (27 loc) 1.45 kB
import type { ParsedLNodeId, ScLabelingFieldType } from "@paroicms/public-anywhere-lib"; import type { MinimalDocumentInfo, MinimalPartInfo, RelatedTermsInfo } from "@paroicms/public-server-lib"; import type { SiteContext } from "../site-context/site-context.types.js"; export declare const MinimalDocumentInfoRowAT: import("arktype/internal/variants/object.ts").ObjectType<(In: { nodeId: number; parentId: number | null; relativeId: string; typeName: string; publishDate: string | null; ready: number; language: string; title: string | null; slug: string | null; }) => import("arktype").Out<MinimalDocumentInfo>, {}>; export declare const MinimalPartInfoRowAT: import("arktype/internal/variants/object.ts").ObjectType<(In: { nodeId: number; parentId: number | null; relativeId: string; typeName: string; listName: string; publishDate: string | null; ready: number; language: string; }) => import("arktype").Out<MinimalPartInfo>, {}>; export declare function loadRelatedTerms(siteContext: SiteContext, labelingFields: ScLabelingFieldType[], nodeId: string, language: string): Promise<RelatedTermsInfo>; export declare function loadMinimalDocumentInfo(siteContext: Pick<SiteContext, "cn">, documentId: ParsedLNodeId): Promise<MinimalDocumentInfo>; export declare function loadMinimalPartInfo(siteContext: Pick<SiteContext, "cn">, partId: ParsedLNodeId): Promise<MinimalPartInfo>;