import { l } from "@atproto/lex-schema"; import * as RichtextFacet from "../richtext/facet.defs.js"; import * as EmbedImages from "../embed/images.defs.js"; import * as EmbedVideo from "../embed/video.defs.js"; import * as EmbedGallery from "../embed/gallery.defs.js"; import * as EmbedExternal from "../embed/external.defs.js"; import * as EmbedRecord from "../embed/record.defs.js"; import * as EmbedRecordWithMedia from "../embed/recordWithMedia.defs.js"; import * as LabelDefs from "../../../com/atproto/label/defs.defs.js"; import * as RepoStrongRef from "../../../com/atproto/repo/strongRef.defs.js"; declare const $nsid = "app.bsky.feed.post"; type $nsid = typeof $nsid; export { $nsid }; /** Record containing a Bluesky post. */ type Main = { $type: "app.bsky.feed.post"; /** * The primary post content. May be an empty string, if there are embeds. */ "text": string; /** * @deprecated replaced by app.bsky.richtext.facet. */ "entities"?: (Entity)[]; /** * Annotations of text (mentions, URLs, hashtags, etc) */ "facets"?: (RichtextFacet.Main)[]; "reply"?: ReplyRef; "embed"?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; /** * Indicates human language of post primary text content. */ "langs"?: (l.LanguageString)[]; /** * Self-label values for this post. Effectively content warnings. */ "labels"?: l.$Typed | l.Unknown$TypedObject; /** * Additional hashtags, in addition to any included in post text and facets. */ "tags"?: (string)[]; /** * Client-declared timestamp when this post was originally created. */ "createdAt": l.DatetimeString; }; export type { Main }; /** Record containing a Bluesky post. */ declare const main: l.RecordSchema<"tid", "app.bsky.feed.post", l.Validator, Omit>>; export { main }; declare const $type = "app.bsky.feed.post"; type $type = typeof $type; export { $type }; export declare const $isTypeOf: (value: TValue) => value is l.TypedRecord<"app.bsky.feed.post", TValue>; export declare const $build: { (input: Omit, "$type">): { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; (input: Omit, "$type">): { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; }; export declare const $assert: (input: unknown, options?: l.ValidateOptions) => asserts input is { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; export declare const $check: (input: unknown, options?: l.ValidateOptions) => void; export declare const $cast: (input: I, options?: l.ValidateOptions) => I & { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; export declare const $ifMatches: (input: I, options?: l.ValidateOptions) => (I & { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }) | undefined; export declare const $matches: (input: I, options?: l.ValidateOptions) => input is I & { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; export declare const $parse: (input: unknown, options?: l.ParseOptions) => { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; export declare const $safeParse: (input: unknown, options?: l.ParseOptions) => l.ValidationResult<{ $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }>; export declare const $validate: (input: I, options?: l.ValidateOptions) => I & { $type: "app.bsky.feed.post"; text: string; entities?: (Entity)[]; facets?: (RichtextFacet.Main)[]; reply?: ReplyRef; embed?: l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }; export declare const $safeValidate: (input: I, options?: l.ValidateOptions) => l.ValidationResult | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.$Typed | l.Unknown$TypedObject; langs?: (l.LanguageString)[]; labels?: l.$Typed | l.Unknown$TypedObject; tags?: (string)[]; createdAt: l.DatetimeString; }>; type ReplyRef = { $type?: "app.bsky.feed.post#replyRef"; "root": RepoStrongRef.Main; "parent": RepoStrongRef.Main; }; export type { ReplyRef }; declare const replyRef: l.TypedObjectSchema<"app.bsky.feed.post#replyRef", l.Validator>; export { replyRef }; /** @deprecated use facets instead. */ type Entity = { $type?: "app.bsky.feed.post#entity"; "index": TextSlice; /** * Expected values are 'mention' and 'link'. */ "type": string; "value": string; }; export type { Entity }; /** @deprecated use facets instead. */ declare const entity: l.TypedObjectSchema<"app.bsky.feed.post#entity", l.Validator>; export { entity }; /** * A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. * @deprecated . Use app.bsky.richtext instead */ type TextSlice = { $type?: "app.bsky.feed.post#textSlice"; "start": number; "end": number; }; export type { TextSlice }; /** * A text segment. Start is inclusive, end is exclusive. Indices are for utf16-encoded strings. * @deprecated . Use app.bsky.richtext instead */ declare const textSlice: l.TypedObjectSchema<"app.bsky.feed.post#textSlice", l.Validator>; export { textSlice }; //# sourceMappingURL=post.defs.d.ts.map