///
import { Span, TracerProvider } from "@opentelemetry/api";
import { Decimal, DocumentLoader, DocumentLoader as DocumentLoader$1, GetUserAgentOptions, GetUserAgentOptions as GetUserAgentOptions$1, LanguageString, LanguageString as LanguageString$1, RemoteDocument } from "@fedify/vocab-runtime";
//#region src/vocab.d.ts
/** Describes an object of any kind. The Object type serves as the base type for
* most of the other kinds of objects defined in the Activity Vocabulary,
* including other Core types such as {@link Activity},
* {@link IntransitiveActivity}, {@link Collection} and
* {@link OrderedCollection}.
*/
declare class Object$1 {
#private;
readonly id: URL | null;
protected get _documentLoader(): DocumentLoader$1 | undefined;
protected get _contextLoader(): DocumentLoader$1 | undefined;
protected get _tracerProvider(): TracerProvider | undefined;
protected get _warning(): {
category: string[];
message: string;
values?: Record;
} | undefined;
protected get _cachedJsonLd(): unknown | undefined;
protected set _cachedJsonLd(value: unknown | undefined);
/**
* The type URI of {@link Object}: `https://www.w3.org/ns/activitystreams#Object`.
*/
static get typeId(): URL;
/**
* Constructs a new instance of Object with the given values.
* @param values The values to initialize the instance with.
* @param options The options to use for initialization.
*/
constructor(values: {
id?: URL | null;
attachments?: (Object$1 | Link | PropertyValue | URL)[];
attribution?: Application | Group | Organization | Person | Service | URL | null;
attributions?: (Application | Group | Organization | Person | Service | URL)[];
audience?: Object$1 | URL | null;
audiences?: (Object$1 | URL)[];
content?: string | LanguageString$1 | null;
contents?: ((string | LanguageString$1))[];
contexts?: (Object$1 | Link | URL)[];
name?: string | LanguageString$1 | null;
names?: ((string | LanguageString$1))[];
endTime?: Temporal.Instant | null;
generators?: (Object$1 | Link | URL)[];
icon?: Image | URL | null;
icons?: (Image | URL)[];
image?: Image | URL | null;
images?: (Image | URL)[];
replyTarget?: Object$1 | Link | URL | null;
replyTargets?: (Object$1 | Link | URL)[];
location?: Object$1 | Link | URL | null;
locations?: (Object$1 | Link | URL)[];
preview?: Link | Object$1 | URL | null;
previews?: (Link | Object$1 | URL)[];
published?: Temporal.Instant | null;
replies?: Collection | URL | null;
shares?: Collection | URL | null;
likes?: Collection | URL | null;
emojiReactions?: Collection | URL | null;
startTime?: Temporal.Instant | null;
summary?: string | LanguageString$1 | null;
summaries?: ((string | LanguageString$1))[];
tags?: (Object$1 | Link | URL)[];
updated?: Temporal.Instant | null;
url?: URL | Link | null;
urls?: ((URL | Link))[];
to?: Object$1 | URL | null;
tos?: (Object$1 | URL)[];
bto?: Object$1 | URL | null;
btos?: (Object$1 | URL)[];
cc?: Object$1 | URL | null;
ccs?: (Object$1 | URL)[];
bcc?: Object$1 | URL | null;
bccs?: (Object$1 | URL)[];
mediaType?: string | null;
duration?: Temporal.Duration | null;
sensitive?: boolean | null;
source?: Source | null;
proof?: DataIntegrityProof | URL | null;
proofs?: (DataIntegrityProof | URL)[];
interactionPolicy?: InteractionPolicy | null;
approvedBy?: URL | null;
likeAuthorization?: LikeAuthorization | URL | null;
replyAuthorization?: ReplyAuthorization | URL | null;
announceAuthorization?: AnnounceAuthorization | URL | null;
}, options?: {
documentLoader?: DocumentLoader$1;
contextLoader?: DocumentLoader$1;
tracerProvider?: TracerProvider;
});
/**
* Clones this instance, optionally updating it with the given values.
* @param values The values to update the clone with.
* @param options The options to use for cloning.
* @returns The cloned instance.
*/
clone(values?: {
id?: URL | null;
attachments?: (Object$1 | Link | PropertyValue | URL)[];
attribution?: Application | Group | Organization | Person | Service | URL | null;
attributions?: (Application | Group | Organization | Person | Service | URL)[];
audience?: Object$1 | URL | null;
audiences?: (Object$1 | URL)[];
content?: string | LanguageString$1 | null;
contents?: ((string | LanguageString$1))[];
contexts?: (Object$1 | Link | URL)[];
name?: string | LanguageString$1 | null;
names?: ((string | LanguageString$1))[];
endTime?: Temporal.Instant | null;
generators?: (Object$1 | Link | URL)[];
icon?: Image | URL | null;
icons?: (Image | URL)[];
image?: Image | URL | null;
images?: (Image | URL)[];
replyTarget?: Object$1 | Link | URL | null;
replyTargets?: (Object$1 | Link | URL)[];
location?: Object$1 | Link | URL | null;
locations?: (Object$1 | Link | URL)[];
preview?: Link | Object$1 | URL | null;
previews?: (Link | Object$1 | URL)[];
published?: Temporal.Instant | null;
replies?: Collection | URL | null;
shares?: Collection | URL | null;
likes?: Collection | URL | null;
emojiReactions?: Collection | URL | null;
startTime?: Temporal.Instant | null;
summary?: string | LanguageString$1 | null;
summaries?: ((string | LanguageString$1))[];
tags?: (Object$1 | Link | URL)[];
updated?: Temporal.Instant | null;
url?: URL | Link | null;
urls?: ((URL | Link))[];
to?: Object$1 | URL | null;
tos?: (Object$1 | URL)[];
bto?: Object$1 | URL | null;
btos?: (Object$1 | URL)[];
cc?: Object$1 | URL | null;
ccs?: (Object$1 | URL)[];
bcc?: Object$1 | URL | null;
bccs?: (Object$1 | URL)[];
mediaType?: string | null;
duration?: Temporal.Duration | null;
sensitive?: boolean | null;
source?: Source | null;
proof?: DataIntegrityProof | URL | null;
proofs?: (DataIntegrityProof | URL)[];
interactionPolicy?: InteractionPolicy | null;
approvedBy?: URL | null;
likeAuthorization?: LikeAuthorization | URL | null;
replyAuthorization?: ReplyAuthorization | URL | null;
announceAuthorization?: AnnounceAuthorization | URL | null;
}, options?: {
documentLoader?: DocumentLoader$1;
contextLoader?: DocumentLoader$1;
}): Object$1;
/**
* Similar to
* {@link Object.getAttachments},
* but returns their `@id`s instead of the objects themselves.
*/
get attachmentIds(): URL[];
/** Identifies a resource attached or related to an object that potentially
* requires special handling. The intent is to provide a model that is at
* least semantically similar to attachments in email.
*/
getAttachments(options?: {
documentLoader?: DocumentLoader$1;
contextLoader?: DocumentLoader$1;
suppressError?: boolean;
tracerProvider?: TracerProvider;
crossOrigin?: "ignore" | "throw" | "trust";
}): AsyncIterable