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