import { Selectable } from 'kysely'; import { app } from '../../../../lexicons/index.js'; import { BackgroundQueue } from '../../background.js'; import { DatabaseSchemaType } from '../../db/database-schema.js'; import { Database } from '../../db/index.js'; import { RecordProcessor } from '../processor.js'; type Post = Selectable; type PostEmbedImage = DatabaseSchemaType['post_embed_image']; type PostEmbedExternal = DatabaseSchemaType['post_embed_external']; type PostEmbedRecord = DatabaseSchemaType['post_embed_record']; type PostEmbedVideo = DatabaseSchemaType['post_embed_video']; type PostAncestor = { uri: string; height: number; }; type PostDescendent = { uri: string; depth: number; cid: string; creator: string; sortAt: string; }; type IndexedPost = { post: Post; facets?: { type: 'mention' | 'link'; value: string; }[]; embeds?: (PostEmbedImage[] | PostEmbedExternal | PostEmbedRecord | PostEmbedVideo)[]; ancestors?: PostAncestor[]; descendents?: PostDescendent[]; threadgate?: app.bsky.feed.threadgate.Main; }; export type PluginType = ReturnType; export declare const makePlugin: (db: Database, background: BackgroundQueue) => RecordProcessor, Omit>>, IndexedPost>; export default makePlugin; //# sourceMappingURL=post.d.ts.map