@cloudflare/workers-types 4.20260528.1 → 4.20260530.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4001,6 +4001,239 @@ declare abstract class Span {
4001
4001
  get isTraced(): boolean;
4002
4002
  setAttribute(key: string, value?: boolean | number | string): void;
4003
4003
  }
4004
+ // ============================================================================
4005
+ // Agent Memory
4006
+ //
4007
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4008
+ // ============================================================================
4009
+ /** Memory type — every memory is classified into exactly one. */
4010
+ type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4011
+ /** Search intensity for recall. */
4012
+ type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4013
+ /** Response verbosity for recall. */
4014
+ type AgentMemoryResponseLength = "short" | "medium" | "long";
4015
+ /** A conversation message passed to ingest(). */
4016
+ interface AgentMemoryMessage {
4017
+ role: "system" | "user" | "assistant";
4018
+ content: string;
4019
+ /** Optional message timestamp. */
4020
+ timestamp?: Date;
4021
+ }
4022
+ /** Raw memory content passed to remember(). */
4023
+ interface AgentMemoryIncomingMemory {
4024
+ /** Raw memory content. The service classifies and summarizes automatically. */
4025
+ content: string;
4026
+ /** Optional session identifier to associate with this memory. */
4027
+ sessionId?: string | null | undefined;
4028
+ }
4029
+ /** A stored memory returned from remember(), get(), and delete(). */
4030
+ interface AgentMemoryMemory {
4031
+ /** Memory ID. */
4032
+ id: string;
4033
+ /** Memory type. */
4034
+ type: AgentMemoryMemoryType;
4035
+ /** Text summary. */
4036
+ summary: string;
4037
+ /** Memory text. */
4038
+ content: string;
4039
+ /** Session that created this memory. */
4040
+ sessionId: string | null;
4041
+ /** Memory creation time. */
4042
+ createdAt: Date;
4043
+ /** Memory last-update time. */
4044
+ updatedAt: Date;
4045
+ }
4046
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4047
+ type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4048
+ /** A scored memory candidate in a recall result. */
4049
+ interface AgentMemoryScoredCandidate {
4050
+ /** Candidate ID. */
4051
+ id: string;
4052
+ /** Text summary. */
4053
+ summary: string;
4054
+ /** Session that created this candidate, when known. */
4055
+ sessionId: string | null;
4056
+ /** Relevance score (higher is better). Comparable only within a single query. */
4057
+ score: number;
4058
+ }
4059
+ /** Options for the ingest() method. */
4060
+ interface AgentMemoryIngestOptions {
4061
+ /** Session identifier to associate with memories created during ingestion. */
4062
+ sessionId?: string | null | undefined;
4063
+ }
4064
+ /** Options for the getSummary() method. */
4065
+ interface AgentMemoryGetSummaryOptions {
4066
+ /** Session identifier to retrieve session summary for. */
4067
+ sessionId?: string | null | undefined;
4068
+ }
4069
+ /** Response from the getSummary() method. */
4070
+ interface AgentMemoryGetSummaryResponse {
4071
+ /** Markdown summary. */
4072
+ summary: string;
4073
+ }
4074
+ /**
4075
+ * Options for the recall() method.
4076
+ *
4077
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4078
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4079
+ * date is used as "today" for resolving relative time references
4080
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4081
+ */
4082
+ interface AgentMemoryRecallOptions {
4083
+ /** Recall intensity: "low" (default), "medium", or "high". */
4084
+ thinkingLevel?: AgentMemoryThinkingLevel;
4085
+ /** Response verbosity: "short", "medium" (default), or "long". */
4086
+ responseLength?: AgentMemoryResponseLength;
4087
+ /** Temporal anchor for date arithmetic. */
4088
+ referenceDate?: Date | string;
4089
+ }
4090
+ /** Response from the recall() method. */
4091
+ interface AgentMemoryRecallResult {
4092
+ /** Number of memories retrieved. */
4093
+ count: number;
4094
+ /** LLM-generated answer synthesizing the matching memories. */
4095
+ answer: string;
4096
+ /** Matching memories ranked by relevance. */
4097
+ candidates: AgentMemoryScoredCandidate[];
4098
+ }
4099
+ /**
4100
+ * Options for the list() method.
4101
+ *
4102
+ * `cursor` is the opaque continuation token returned by the previous page;
4103
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4104
+ * are exact-match filters; combining them is allowed.
4105
+ */
4106
+ interface AgentMemoryListMemoriesOptions {
4107
+ /** Maximum number of memories to return. Default 20, max 500. */
4108
+ limit?: number;
4109
+ /** Opaque cursor from a previous page. */
4110
+ cursor?: string;
4111
+ /** Exact-match session filter. */
4112
+ sessionId?: string;
4113
+ /** Exact-match memory-type filter. */
4114
+ type?: AgentMemoryMemoryType;
4115
+ }
4116
+ /** Response from the list() method. */
4117
+ interface AgentMemoryListMemoriesResult {
4118
+ memories: AgentMemoryMemoryListEntry[];
4119
+ /** Continuation cursor; absent when this page exhausted the result set. */
4120
+ cursor?: string;
4121
+ }
4122
+ /**
4123
+ * A single Agent Memory profile, scoped to a profile name.
4124
+ *
4125
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4126
+ */
4127
+ declare abstract class AgentMemoryProfile {
4128
+ /**
4129
+ * Retrieve a memory by ID.
4130
+ *
4131
+ * @param memoryId - ULID of the memory to retrieve.
4132
+ * @throws if the memory does not exist.
4133
+ */
4134
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4135
+ /**
4136
+ * Delete a memory by ID.
4137
+ *
4138
+ * Removes the memory and any source messages linked by the memory's
4139
+ * source message IDs.
4140
+ *
4141
+ * @param memoryId - ULID of the memory to delete.
4142
+ * @throws if the memory does not exist.
4143
+ */
4144
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4145
+ /**
4146
+ * Store a memory in this profile. The content is automatically classified,
4147
+ * summarized, and indexed.
4148
+ *
4149
+ * @param memory - Raw memory content to persist.
4150
+ */
4151
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4152
+ /**
4153
+ * Extract memories from a conversation.
4154
+ *
4155
+ * @param messages - Conversation messages to extract memories from.
4156
+ * @param options - Optional ingest options.
4157
+ */
4158
+ ingest(
4159
+ messages: Iterable<AgentMemoryMessage>,
4160
+ options?: AgentMemoryIngestOptions,
4161
+ ): Promise<void>;
4162
+ /**
4163
+ * Get a profile summary.
4164
+ *
4165
+ * @param options - Optional getSummary options.
4166
+ */
4167
+ getSummary(
4168
+ options?: AgentMemoryGetSummaryOptions,
4169
+ ): Promise<AgentMemoryGetSummaryResponse>;
4170
+ /**
4171
+ * Recall memories in this profile.
4172
+ *
4173
+ * @param query - Recall query matched against memory content and keywords.
4174
+ * @param options - Optional recall parameters.
4175
+ * @returns Matching memories with relevance scores and a synthesized answer.
4176
+ */
4177
+ recall(
4178
+ query: string,
4179
+ options?: AgentMemoryRecallOptions,
4180
+ ): Promise<AgentMemoryRecallResult>;
4181
+ /**
4182
+ * List active memories in this profile.
4183
+ *
4184
+ * Returns a paginated, filterable view of stored memories. Superseded
4185
+ * versions are excluded. Use the returned `cursor` (when present) to
4186
+ * fetch the next page.
4187
+ *
4188
+ * @param options - Optional pagination and filter options.
4189
+ */
4190
+ list(
4191
+ options?: AgentMemoryListMemoriesOptions,
4192
+ ): Promise<AgentMemoryListMemoriesResult>;
4193
+ /**
4194
+ * Soft-delete every memory and message in this profile that is tagged
4195
+ * with `sessionId`.
4196
+ *
4197
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4198
+ *
4199
+ * @param sessionId - Session to delete.
4200
+ */
4201
+ deleteSession(sessionId: string): Promise<void>;
4202
+ }
4203
+ /**
4204
+ * Namespace-level Agent Memory binding.
4205
+ *
4206
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4207
+ * Memory product.
4208
+ *
4209
+ * @example
4210
+ * ```ts
4211
+ * export default {
4212
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4213
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4214
+ * const summary = await profile.getSummary();
4215
+ * return Response.json(summary);
4216
+ * },
4217
+ * };
4218
+ * ```
4219
+ */
4220
+ declare abstract class AgentMemoryNamespace {
4221
+ /**
4222
+ * Get a memory profile by name. Profiles are isolated by namespace and
4223
+ * addressed by a compound key (namespaceId:profileName).
4224
+ *
4225
+ * @param profileName - Profile name (validated against naming rules).
4226
+ * @returns RPC target for interacting with the profile.
4227
+ */
4228
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4229
+ /**
4230
+ * Soft-delete a profile and schedule deferred purge. Marks all
4231
+ * memories and messages as deleted.
4232
+ *
4233
+ * @param profileName - Name of the profile to delete.
4234
+ */
4235
+ deleteProfile(profileName: string): Promise<void>;
4236
+ }
4004
4237
  // ============ AI Search Error Interfaces ============
4005
4238
  interface AiSearchInternalError extends Error {}
4006
4239
  interface AiSearchNotFoundError extends Error {}
@@ -12114,6 +12347,21 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12114
12347
  * (form a line).
12115
12348
  */
12116
12349
  repeat?: true | "x" | "y";
12350
+ /**
12351
+ * How to combine the foreground and backdrop pixels to create the result
12352
+ */
12353
+ composite?: /** Foreground drawn on top of backdrop (default) */
12354
+ | "over"
12355
+ /** Foreground shown only where backdrop is opaque */
12356
+ | "in"
12357
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12358
+ | "atop"
12359
+ /** Foreground shown only where backdrop is transparent */
12360
+ | "out"
12361
+ /** Foreground and backdrop visible only where the other is not */
12362
+ | "xor"
12363
+ /** Foreground and backdrop channels added (brightening) */
12364
+ | "lighter";
12117
12365
  /**
12118
12366
  * Position of the overlay image relative to a given edge. Each property is
12119
12367
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13457,11 +13705,25 @@ type ImageTransform = {
13457
13705
  type ImageDrawOptions = {
13458
13706
  opacity?: number;
13459
13707
  repeat?: boolean | string;
13708
+ composite?: ImageCompositeMode;
13460
13709
  top?: number;
13461
13710
  left?: number;
13462
13711
  bottom?: number;
13463
13712
  right?: number;
13464
13713
  };
13714
+ type ImageCompositeMode =
13715
+ /** Foreground drawn on top of backdrop (default) */
13716
+ | "over"
13717
+ /** Foreground shown only where backdrop is opaque */
13718
+ | "in"
13719
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13720
+ | "atop"
13721
+ /** Foreground shown only where backdrop is transparent */
13722
+ | "out"
13723
+ /** Foreground and backdrop visible only where the other is not */
13724
+ | "xor"
13725
+ /** Foreground and backdrop channels added (brightening) */
13726
+ | "lighter";
13465
13727
  type ImageInputOptions = {
13466
13728
  encoding?: "base64";
13467
13729
  };
@@ -4007,6 +4007,239 @@ export declare abstract class Span {
4007
4007
  get isTraced(): boolean;
4008
4008
  setAttribute(key: string, value?: boolean | number | string): void;
4009
4009
  }
4010
+ // ============================================================================
4011
+ // Agent Memory
4012
+ //
4013
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4014
+ // ============================================================================
4015
+ /** Memory type — every memory is classified into exactly one. */
4016
+ export type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4017
+ /** Search intensity for recall. */
4018
+ export type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4019
+ /** Response verbosity for recall. */
4020
+ export type AgentMemoryResponseLength = "short" | "medium" | "long";
4021
+ /** A conversation message passed to ingest(). */
4022
+ export interface AgentMemoryMessage {
4023
+ role: "system" | "user" | "assistant";
4024
+ content: string;
4025
+ /** Optional message timestamp. */
4026
+ timestamp?: Date;
4027
+ }
4028
+ /** Raw memory content passed to remember(). */
4029
+ export interface AgentMemoryIncomingMemory {
4030
+ /** Raw memory content. The service classifies and summarizes automatically. */
4031
+ content: string;
4032
+ /** Optional session identifier to associate with this memory. */
4033
+ sessionId?: string | null | undefined;
4034
+ }
4035
+ /** A stored memory returned from remember(), get(), and delete(). */
4036
+ export interface AgentMemoryMemory {
4037
+ /** Memory ID. */
4038
+ id: string;
4039
+ /** Memory type. */
4040
+ type: AgentMemoryMemoryType;
4041
+ /** Text summary. */
4042
+ summary: string;
4043
+ /** Memory text. */
4044
+ content: string;
4045
+ /** Session that created this memory. */
4046
+ sessionId: string | null;
4047
+ /** Memory creation time. */
4048
+ createdAt: Date;
4049
+ /** Memory last-update time. */
4050
+ updatedAt: Date;
4051
+ }
4052
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4053
+ export type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4054
+ /** A scored memory candidate in a recall result. */
4055
+ export interface AgentMemoryScoredCandidate {
4056
+ /** Candidate ID. */
4057
+ id: string;
4058
+ /** Text summary. */
4059
+ summary: string;
4060
+ /** Session that created this candidate, when known. */
4061
+ sessionId: string | null;
4062
+ /** Relevance score (higher is better). Comparable only within a single query. */
4063
+ score: number;
4064
+ }
4065
+ /** Options for the ingest() method. */
4066
+ export interface AgentMemoryIngestOptions {
4067
+ /** Session identifier to associate with memories created during ingestion. */
4068
+ sessionId?: string | null | undefined;
4069
+ }
4070
+ /** Options for the getSummary() method. */
4071
+ export interface AgentMemoryGetSummaryOptions {
4072
+ /** Session identifier to retrieve session summary for. */
4073
+ sessionId?: string | null | undefined;
4074
+ }
4075
+ /** Response from the getSummary() method. */
4076
+ export interface AgentMemoryGetSummaryResponse {
4077
+ /** Markdown summary. */
4078
+ summary: string;
4079
+ }
4080
+ /**
4081
+ * Options for the recall() method.
4082
+ *
4083
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4084
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4085
+ * date is used as "today" for resolving relative time references
4086
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4087
+ */
4088
+ export interface AgentMemoryRecallOptions {
4089
+ /** Recall intensity: "low" (default), "medium", or "high". */
4090
+ thinkingLevel?: AgentMemoryThinkingLevel;
4091
+ /** Response verbosity: "short", "medium" (default), or "long". */
4092
+ responseLength?: AgentMemoryResponseLength;
4093
+ /** Temporal anchor for date arithmetic. */
4094
+ referenceDate?: Date | string;
4095
+ }
4096
+ /** Response from the recall() method. */
4097
+ export interface AgentMemoryRecallResult {
4098
+ /** Number of memories retrieved. */
4099
+ count: number;
4100
+ /** LLM-generated answer synthesizing the matching memories. */
4101
+ answer: string;
4102
+ /** Matching memories ranked by relevance. */
4103
+ candidates: AgentMemoryScoredCandidate[];
4104
+ }
4105
+ /**
4106
+ * Options for the list() method.
4107
+ *
4108
+ * `cursor` is the opaque continuation token returned by the previous page;
4109
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4110
+ * are exact-match filters; combining them is allowed.
4111
+ */
4112
+ export interface AgentMemoryListMemoriesOptions {
4113
+ /** Maximum number of memories to return. Default 20, max 500. */
4114
+ limit?: number;
4115
+ /** Opaque cursor from a previous page. */
4116
+ cursor?: string;
4117
+ /** Exact-match session filter. */
4118
+ sessionId?: string;
4119
+ /** Exact-match memory-type filter. */
4120
+ type?: AgentMemoryMemoryType;
4121
+ }
4122
+ /** Response from the list() method. */
4123
+ export interface AgentMemoryListMemoriesResult {
4124
+ memories: AgentMemoryMemoryListEntry[];
4125
+ /** Continuation cursor; absent when this page exhausted the result set. */
4126
+ cursor?: string;
4127
+ }
4128
+ /**
4129
+ * A single Agent Memory profile, scoped to a profile name.
4130
+ *
4131
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4132
+ */
4133
+ export declare abstract class AgentMemoryProfile {
4134
+ /**
4135
+ * Retrieve a memory by ID.
4136
+ *
4137
+ * @param memoryId - ULID of the memory to retrieve.
4138
+ * @throws if the memory does not exist.
4139
+ */
4140
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4141
+ /**
4142
+ * Delete a memory by ID.
4143
+ *
4144
+ * Removes the memory and any source messages linked by the memory's
4145
+ * source message IDs.
4146
+ *
4147
+ * @param memoryId - ULID of the memory to delete.
4148
+ * @throws if the memory does not exist.
4149
+ */
4150
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4151
+ /**
4152
+ * Store a memory in this profile. The content is automatically classified,
4153
+ * summarized, and indexed.
4154
+ *
4155
+ * @param memory - Raw memory content to persist.
4156
+ */
4157
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4158
+ /**
4159
+ * Extract memories from a conversation.
4160
+ *
4161
+ * @param messages - Conversation messages to extract memories from.
4162
+ * @param options - Optional ingest options.
4163
+ */
4164
+ ingest(
4165
+ messages: Iterable<AgentMemoryMessage>,
4166
+ options?: AgentMemoryIngestOptions,
4167
+ ): Promise<void>;
4168
+ /**
4169
+ * Get a profile summary.
4170
+ *
4171
+ * @param options - Optional getSummary options.
4172
+ */
4173
+ getSummary(
4174
+ options?: AgentMemoryGetSummaryOptions,
4175
+ ): Promise<AgentMemoryGetSummaryResponse>;
4176
+ /**
4177
+ * Recall memories in this profile.
4178
+ *
4179
+ * @param query - Recall query matched against memory content and keywords.
4180
+ * @param options - Optional recall parameters.
4181
+ * @returns Matching memories with relevance scores and a synthesized answer.
4182
+ */
4183
+ recall(
4184
+ query: string,
4185
+ options?: AgentMemoryRecallOptions,
4186
+ ): Promise<AgentMemoryRecallResult>;
4187
+ /**
4188
+ * List active memories in this profile.
4189
+ *
4190
+ * Returns a paginated, filterable view of stored memories. Superseded
4191
+ * versions are excluded. Use the returned `cursor` (when present) to
4192
+ * fetch the next page.
4193
+ *
4194
+ * @param options - Optional pagination and filter options.
4195
+ */
4196
+ list(
4197
+ options?: AgentMemoryListMemoriesOptions,
4198
+ ): Promise<AgentMemoryListMemoriesResult>;
4199
+ /**
4200
+ * Soft-delete every memory and message in this profile that is tagged
4201
+ * with `sessionId`.
4202
+ *
4203
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4204
+ *
4205
+ * @param sessionId - Session to delete.
4206
+ */
4207
+ deleteSession(sessionId: string): Promise<void>;
4208
+ }
4209
+ /**
4210
+ * Namespace-level Agent Memory binding.
4211
+ *
4212
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4213
+ * Memory product.
4214
+ *
4215
+ * @example
4216
+ * ```ts
4217
+ * export default {
4218
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4219
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4220
+ * const summary = await profile.getSummary();
4221
+ * return Response.json(summary);
4222
+ * },
4223
+ * };
4224
+ * ```
4225
+ */
4226
+ export declare abstract class AgentMemoryNamespace {
4227
+ /**
4228
+ * Get a memory profile by name. Profiles are isolated by namespace and
4229
+ * addressed by a compound key (namespaceId:profileName).
4230
+ *
4231
+ * @param profileName - Profile name (validated against naming rules).
4232
+ * @returns RPC target for interacting with the profile.
4233
+ */
4234
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4235
+ /**
4236
+ * Soft-delete a profile and schedule deferred purge. Marks all
4237
+ * memories and messages as deleted.
4238
+ *
4239
+ * @param profileName - Name of the profile to delete.
4240
+ */
4241
+ deleteProfile(profileName: string): Promise<void>;
4242
+ }
4010
4243
  // ============ AI Search Error Interfaces ============
4011
4244
  export interface AiSearchInternalError extends Error {}
4012
4245
  export interface AiSearchNotFoundError extends Error {}
@@ -12126,6 +12359,21 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12126
12359
  * (form a line).
12127
12360
  */
12128
12361
  repeat?: true | "x" | "y";
12362
+ /**
12363
+ * How to combine the foreground and backdrop pixels to create the result
12364
+ */
12365
+ composite?: /** Foreground drawn on top of backdrop (default) */
12366
+ | "over"
12367
+ /** Foreground shown only where backdrop is opaque */
12368
+ | "in"
12369
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12370
+ | "atop"
12371
+ /** Foreground shown only where backdrop is transparent */
12372
+ | "out"
12373
+ /** Foreground and backdrop visible only where the other is not */
12374
+ | "xor"
12375
+ /** Foreground and backdrop channels added (brightening) */
12376
+ | "lighter";
12129
12377
  /**
12130
12378
  * Position of the overlay image relative to a given edge. Each property is
12131
12379
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13477,11 +13725,25 @@ export type ImageTransform = {
13477
13725
  export type ImageDrawOptions = {
13478
13726
  opacity?: number;
13479
13727
  repeat?: boolean | string;
13728
+ composite?: ImageCompositeMode;
13480
13729
  top?: number;
13481
13730
  left?: number;
13482
13731
  bottom?: number;
13483
13732
  right?: number;
13484
13733
  };
13734
+ export type ImageCompositeMode =
13735
+ /** Foreground drawn on top of backdrop (default) */
13736
+ | "over"
13737
+ /** Foreground shown only where backdrop is opaque */
13738
+ | "in"
13739
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13740
+ | "atop"
13741
+ /** Foreground shown only where backdrop is transparent */
13742
+ | "out"
13743
+ /** Foreground and backdrop visible only where the other is not */
13744
+ | "xor"
13745
+ /** Foreground and backdrop channels added (brightening) */
13746
+ | "lighter";
13485
13747
  export type ImageInputOptions = {
13486
13748
  encoding?: "base64";
13487
13749
  };