UNPKG

astronotion

Version:

Library to make Astro sites with content from Notion

31 lines (30 loc) 1.47 kB
import type { AnChildAstroStaticPath, AnConfigPage, AnEntryPage, AnParentPage, AnTopLevelAstroStaticPath } from "./lib"; export declare const getPage: (notionId: string, type: "parent" | "standalone") => Promise<undefined | AnParentPage | AnEntryPage>; export declare const getParentPage: (notionId: string) => Promise<({ title: string; icon?: string | undefined; cover?: import("./lib").AnCoverImage | undefined; description?: import("notion-types/build/core").Decoration[] | undefined; } & { childPages: import("./lib").AnExcerpt[]; }) | undefined>; export declare const getStandalonePage: (notionId: string) => Promise<({ title: string; icon?: string | undefined; cover?: import("./lib").AnCoverImage | undefined; description?: import("notion-types/build/core").Decoration[] | undefined; } & { id: string; taxonomies: string[]; created: number; updated: number; } & { contents: import("./lib").AnContentBlock[]; }) | undefined>; export declare const getChildPagesStaticPaths: (args: { parentId: string; childPages: AnParentPage["pageData"]["childPages"]; basePath?: string | undefined; }) => Promise<AnChildAstroStaticPath[]>; export declare const getManyBaseStaticPaths: (pageConfigs?: AnConfigPage[]) => Promise<(AnTopLevelAstroStaticPath | AnChildAstroStaticPath)[]>; export declare const getOneBaseStaticPaths: (pageConfig: AnConfigPage) => Promise<AnTopLevelAstroStaticPath[] | undefined>;