import { PageObjectResponse } from '@notionhq/client/build/src/api-endpoints'; export type NotionPropertyValue = PageObjectResponse['properties'][string]; export type NotionPropertyRollupValue = Extract['rollup'], { type: 'array'; }>['array'][number]; export type NotionPropertyType = NotionPropertyValue['type']; export type NotionPropertyParser = (prop: NotionPropertyValue | NotionPropertyRollupValue) => any; export type NotionPropertyParsers = Partial>; export type CreateNotionServiceParams = { token?: string; }; export type NotionSecrets = { alpha: string; beta: string; gamma: string; delta: string; epsilon: string; }; export type NotionRecordWithMeta = T & { metadata?: PageObjectResponse; };