UNPKG

@paroicms/server

Version:
16 lines (15 loc) 640 B
import type { DocumentsLoadDescriptor, TpDocValues } from "@paroicms/public-server-lib"; import type { RenderingContext } from "../liquidjs-tools/liquidjs-rendering/rendering-context.js"; export declare function listDocValues(renderingContext: RenderingContext, descriptor: DocumentsLoadDescriptor, options: { onlyPublished?: boolean; withTotal: false; }): Promise<{ items: TpDocValues[]; }>; export declare function listDocValues(renderingContext: RenderingContext, descriptor: DocumentsLoadDescriptor, options: { onlyPublished?: boolean; withTotal: true; }): Promise<{ items: TpDocValues[]; total: number; }>;