import { AtpAgent } from './agent'; import { AppBskyFeedPost, AppBskyActorProfile, AppBskyActorDefs } from './client'; import { BskyPreferences, BskyFeedViewPreference, BskyThreadViewPreference, BskyInterestsPreference } from './types'; import { InterpretedLabelValueDefinition, LabelPreference, ModerationPrefs } from './moderation/types'; declare global { interface Array { findLast(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T; } } export declare class BskyAgent extends AtpAgent { clone(): BskyAgent; get app(): import("./client").AppNS; getTimeline: typeof this.api.app.bsky.feed.getTimeline; getAuthorFeed: typeof this.api.app.bsky.feed.getAuthorFeed; getActorLikes: typeof this.api.app.bsky.feed.getActorLikes; getPostThread: typeof this.api.app.bsky.feed.getPostThread; getPost: typeof this.api.app.bsky.feed.post.get; getPosts: typeof this.api.app.bsky.feed.getPosts; getLikes: typeof this.api.app.bsky.feed.getLikes; getRepostedBy: typeof this.api.app.bsky.feed.getRepostedBy; getFollows: typeof this.api.app.bsky.graph.getFollows; getFollowers: typeof this.api.app.bsky.graph.getFollowers; getProfile: typeof this.api.app.bsky.actor.getProfile; getProfiles: typeof this.api.app.bsky.actor.getProfiles; getSuggestions: typeof this.api.app.bsky.actor.getSuggestions; searchActors: typeof this.api.app.bsky.actor.searchActors; searchActorsTypeahead: typeof this.api.app.bsky.actor.searchActorsTypeahead; listNotifications: typeof this.api.app.bsky.notification.listNotifications; countUnreadNotifications: typeof this.api.app.bsky.notification.getUnreadCount; getLabelers: typeof this.api.app.bsky.labeler.getServices; getLabelDefinitions(prefs: BskyPreferences | ModerationPrefs | string[]): Promise>; post(record: Partial & Omit): Promise<{ uri: string; cid: string; }>; deletePost(postUri: string): Promise; like(uri: string, cid: string): Promise<{ uri: string; cid: string; }>; deleteLike(likeUri: string): Promise; repost(uri: string, cid: string): Promise<{ uri: string; cid: string; }>; deleteRepost(repostUri: string): Promise; follow(subjectDid: string): Promise<{ uri: string; cid: string; }>; deleteFollow(followUri: string): Promise; upsertProfile(updateFn: (existing: AppBskyActorProfile.Record | undefined) => AppBskyActorProfile.Record | Promise): Promise; mute(actor: string): Promise; unmute(actor: string): Promise; muteModList(uri: string): Promise; unmuteModList(uri: string): Promise; blockModList(uri: string): Promise<{ uri: string; cid: string; }>; unblockModList(uri: string): Promise; updateSeenNotifications(seenAt?: string): Promise; getPreferences(): Promise; overwriteSavedFeeds(savedFeeds: AppBskyActorDefs.SavedFeed[]): Promise; updateSavedFeeds(savedFeedsToUpdate: AppBskyActorDefs.SavedFeed[]): Promise; addSavedFeeds(savedFeeds: Pick[]): Promise; removeSavedFeeds(ids: string[]): Promise; /** * @deprecated use `overwriteSavedFeeds` */ setSavedFeeds(saved: string[], pinned: string[]): Promise<{ saved: string[]; pinned: string[]; }>; /** * @deprecated use `addSavedFeeds` */ addSavedFeed(v: string): Promise<{ saved: string[]; pinned: string[]; }>; /** * @deprecated use `removeSavedFeeds` */ removeSavedFeed(v: string): Promise<{ saved: string[]; pinned: string[]; }>; /** * @deprecated use `addSavedFeeds` or `updateSavedFeeds` */ addPinnedFeed(v: string): Promise<{ saved: string[]; pinned: string[]; }>; /** * @deprecated use `updateSavedFeeds` or `removeSavedFeeds` */ removePinnedFeed(v: string): Promise<{ saved: string[]; pinned: string[]; }>; setAdultContentEnabled(v: boolean): Promise; setContentLabelPref(key: string, value: LabelPreference, labelerDid?: string): Promise; addLabeler(did: string): Promise; removeLabeler(did: string): Promise; setPersonalDetails({ birthDate, }: { birthDate: string | Date | undefined; }): Promise; setFeedViewPrefs(feed: string, pref: Partial): Promise; setThreadViewPrefs(pref: Partial): Promise; setInterestsPref(pref: Partial): Promise; upsertMutedWords(newMutedWords: AppBskyActorDefs.MutedWord[]): Promise; updateMutedWord(mutedWord: AppBskyActorDefs.MutedWord): Promise; removeMutedWord(mutedWord: AppBskyActorDefs.MutedWord): Promise; hidePost(postUri: string): Promise; unhidePost(postUri: string): Promise; } //# sourceMappingURL=bsky-agent.d.ts.map