import {type AppBskyFeedDefs} from '@atproto/api' export interface FeedAPIResponse { cursor?: string feed: AppBskyFeedDefs.FeedViewPost[] } export interface FeedAPI { peekLatest(): Promise fetch({ cursor, limit, }: { cursor: string | undefined limit: number }): Promise } export interface ReasonFeedSource { $type: 'reasonFeedSource' uri: string href: string } export function isReasonFeedSource(v: unknown): v is ReasonFeedSource { return ( !!v && typeof v === 'object' && '$type' in v && v.$type === 'reasonFeedSource' ) }