@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.
@@ -4033,6 +4033,239 @@ declare abstract class Span {
4033
4033
  get isTraced(): boolean;
4034
4034
  setAttribute(key: string, value?: boolean | number | string): void;
4035
4035
  }
4036
+ // ============================================================================
4037
+ // Agent Memory
4038
+ //
4039
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4040
+ // ============================================================================
4041
+ /** Memory type — every memory is classified into exactly one. */
4042
+ type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4043
+ /** Search intensity for recall. */
4044
+ type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4045
+ /** Response verbosity for recall. */
4046
+ type AgentMemoryResponseLength = "short" | "medium" | "long";
4047
+ /** A conversation message passed to ingest(). */
4048
+ interface AgentMemoryMessage {
4049
+ role: "system" | "user" | "assistant";
4050
+ content: string;
4051
+ /** Optional message timestamp. */
4052
+ timestamp?: Date;
4053
+ }
4054
+ /** Raw memory content passed to remember(). */
4055
+ interface AgentMemoryIncomingMemory {
4056
+ /** Raw memory content. The service classifies and summarizes automatically. */
4057
+ content: string;
4058
+ /** Optional session identifier to associate with this memory. */
4059
+ sessionId?: string | null | undefined;
4060
+ }
4061
+ /** A stored memory returned from remember(), get(), and delete(). */
4062
+ interface AgentMemoryMemory {
4063
+ /** Memory ID. */
4064
+ id: string;
4065
+ /** Memory type. */
4066
+ type: AgentMemoryMemoryType;
4067
+ /** Text summary. */
4068
+ summary: string;
4069
+ /** Memory text. */
4070
+ content: string;
4071
+ /** Session that created this memory. */
4072
+ sessionId: string | null;
4073
+ /** Memory creation time. */
4074
+ createdAt: Date;
4075
+ /** Memory last-update time. */
4076
+ updatedAt: Date;
4077
+ }
4078
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4079
+ type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4080
+ /** A scored memory candidate in a recall result. */
4081
+ interface AgentMemoryScoredCandidate {
4082
+ /** Candidate ID. */
4083
+ id: string;
4084
+ /** Text summary. */
4085
+ summary: string;
4086
+ /** Session that created this candidate, when known. */
4087
+ sessionId: string | null;
4088
+ /** Relevance score (higher is better). Comparable only within a single query. */
4089
+ score: number;
4090
+ }
4091
+ /** Options for the ingest() method. */
4092
+ interface AgentMemoryIngestOptions {
4093
+ /** Session identifier to associate with memories created during ingestion. */
4094
+ sessionId?: string | null | undefined;
4095
+ }
4096
+ /** Options for the getSummary() method. */
4097
+ interface AgentMemoryGetSummaryOptions {
4098
+ /** Session identifier to retrieve session summary for. */
4099
+ sessionId?: string | null | undefined;
4100
+ }
4101
+ /** Response from the getSummary() method. */
4102
+ interface AgentMemoryGetSummaryResponse {
4103
+ /** Markdown summary. */
4104
+ summary: string;
4105
+ }
4106
+ /**
4107
+ * Options for the recall() method.
4108
+ *
4109
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4110
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4111
+ * date is used as "today" for resolving relative time references
4112
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4113
+ */
4114
+ interface AgentMemoryRecallOptions {
4115
+ /** Recall intensity: "low" (default), "medium", or "high". */
4116
+ thinkingLevel?: AgentMemoryThinkingLevel;
4117
+ /** Response verbosity: "short", "medium" (default), or "long". */
4118
+ responseLength?: AgentMemoryResponseLength;
4119
+ /** Temporal anchor for date arithmetic. */
4120
+ referenceDate?: Date | string;
4121
+ }
4122
+ /** Response from the recall() method. */
4123
+ interface AgentMemoryRecallResult {
4124
+ /** Number of memories retrieved. */
4125
+ count: number;
4126
+ /** LLM-generated answer synthesizing the matching memories. */
4127
+ answer: string;
4128
+ /** Matching memories ranked by relevance. */
4129
+ candidates: AgentMemoryScoredCandidate[];
4130
+ }
4131
+ /**
4132
+ * Options for the list() method.
4133
+ *
4134
+ * `cursor` is the opaque continuation token returned by the previous page;
4135
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4136
+ * are exact-match filters; combining them is allowed.
4137
+ */
4138
+ interface AgentMemoryListMemoriesOptions {
4139
+ /** Maximum number of memories to return. Default 20, max 500. */
4140
+ limit?: number;
4141
+ /** Opaque cursor from a previous page. */
4142
+ cursor?: string;
4143
+ /** Exact-match session filter. */
4144
+ sessionId?: string;
4145
+ /** Exact-match memory-type filter. */
4146
+ type?: AgentMemoryMemoryType;
4147
+ }
4148
+ /** Response from the list() method. */
4149
+ interface AgentMemoryListMemoriesResult {
4150
+ memories: AgentMemoryMemoryListEntry[];
4151
+ /** Continuation cursor; absent when this page exhausted the result set. */
4152
+ cursor?: string;
4153
+ }
4154
+ /**
4155
+ * A single Agent Memory profile, scoped to a profile name.
4156
+ *
4157
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4158
+ */
4159
+ declare abstract class AgentMemoryProfile {
4160
+ /**
4161
+ * Retrieve a memory by ID.
4162
+ *
4163
+ * @param memoryId - ULID of the memory to retrieve.
4164
+ * @throws if the memory does not exist.
4165
+ */
4166
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4167
+ /**
4168
+ * Delete a memory by ID.
4169
+ *
4170
+ * Removes the memory and any source messages linked by the memory's
4171
+ * source message IDs.
4172
+ *
4173
+ * @param memoryId - ULID of the memory to delete.
4174
+ * @throws if the memory does not exist.
4175
+ */
4176
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4177
+ /**
4178
+ * Store a memory in this profile. The content is automatically classified,
4179
+ * summarized, and indexed.
4180
+ *
4181
+ * @param memory - Raw memory content to persist.
4182
+ */
4183
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4184
+ /**
4185
+ * Extract memories from a conversation.
4186
+ *
4187
+ * @param messages - Conversation messages to extract memories from.
4188
+ * @param options - Optional ingest options.
4189
+ */
4190
+ ingest(
4191
+ messages: Iterable<AgentMemoryMessage>,
4192
+ options?: AgentMemoryIngestOptions,
4193
+ ): Promise<void>;
4194
+ /**
4195
+ * Get a profile summary.
4196
+ *
4197
+ * @param options - Optional getSummary options.
4198
+ */
4199
+ getSummary(
4200
+ options?: AgentMemoryGetSummaryOptions,
4201
+ ): Promise<AgentMemoryGetSummaryResponse>;
4202
+ /**
4203
+ * Recall memories in this profile.
4204
+ *
4205
+ * @param query - Recall query matched against memory content and keywords.
4206
+ * @param options - Optional recall parameters.
4207
+ * @returns Matching memories with relevance scores and a synthesized answer.
4208
+ */
4209
+ recall(
4210
+ query: string,
4211
+ options?: AgentMemoryRecallOptions,
4212
+ ): Promise<AgentMemoryRecallResult>;
4213
+ /**
4214
+ * List active memories in this profile.
4215
+ *
4216
+ * Returns a paginated, filterable view of stored memories. Superseded
4217
+ * versions are excluded. Use the returned `cursor` (when present) to
4218
+ * fetch the next page.
4219
+ *
4220
+ * @param options - Optional pagination and filter options.
4221
+ */
4222
+ list(
4223
+ options?: AgentMemoryListMemoriesOptions,
4224
+ ): Promise<AgentMemoryListMemoriesResult>;
4225
+ /**
4226
+ * Soft-delete every memory and message in this profile that is tagged
4227
+ * with `sessionId`.
4228
+ *
4229
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4230
+ *
4231
+ * @param sessionId - Session to delete.
4232
+ */
4233
+ deleteSession(sessionId: string): Promise<void>;
4234
+ }
4235
+ /**
4236
+ * Namespace-level Agent Memory binding.
4237
+ *
4238
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4239
+ * Memory product.
4240
+ *
4241
+ * @example
4242
+ * ```ts
4243
+ * export default {
4244
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4245
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4246
+ * const summary = await profile.getSummary();
4247
+ * return Response.json(summary);
4248
+ * },
4249
+ * };
4250
+ * ```
4251
+ */
4252
+ declare abstract class AgentMemoryNamespace {
4253
+ /**
4254
+ * Get a memory profile by name. Profiles are isolated by namespace and
4255
+ * addressed by a compound key (namespaceId:profileName).
4256
+ *
4257
+ * @param profileName - Profile name (validated against naming rules).
4258
+ * @returns RPC target for interacting with the profile.
4259
+ */
4260
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4261
+ /**
4262
+ * Soft-delete a profile and schedule deferred purge. Marks all
4263
+ * memories and messages as deleted.
4264
+ *
4265
+ * @param profileName - Name of the profile to delete.
4266
+ */
4267
+ deleteProfile(profileName: string): Promise<void>;
4268
+ }
4036
4269
  // ============ AI Search Error Interfaces ============
4037
4270
  interface AiSearchInternalError extends Error {}
4038
4271
  interface AiSearchNotFoundError extends Error {}
@@ -12146,6 +12379,21 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12146
12379
  * (form a line).
12147
12380
  */
12148
12381
  repeat?: true | "x" | "y";
12382
+ /**
12383
+ * How to combine the foreground and backdrop pixels to create the result
12384
+ */
12385
+ composite?: /** Foreground drawn on top of backdrop (default) */
12386
+ | "over"
12387
+ /** Foreground shown only where backdrop is opaque */
12388
+ | "in"
12389
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12390
+ | "atop"
12391
+ /** Foreground shown only where backdrop is transparent */
12392
+ | "out"
12393
+ /** Foreground and backdrop visible only where the other is not */
12394
+ | "xor"
12395
+ /** Foreground and backdrop channels added (brightening) */
12396
+ | "lighter";
12149
12397
  /**
12150
12398
  * Position of the overlay image relative to a given edge. Each property is
12151
12399
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13489,11 +13737,25 @@ type ImageTransform = {
13489
13737
  type ImageDrawOptions = {
13490
13738
  opacity?: number;
13491
13739
  repeat?: boolean | string;
13740
+ composite?: ImageCompositeMode;
13492
13741
  top?: number;
13493
13742
  left?: number;
13494
13743
  bottom?: number;
13495
13744
  right?: number;
13496
13745
  };
13746
+ type ImageCompositeMode =
13747
+ /** Foreground drawn on top of backdrop (default) */
13748
+ | "over"
13749
+ /** Foreground shown only where backdrop is opaque */
13750
+ | "in"
13751
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13752
+ | "atop"
13753
+ /** Foreground shown only where backdrop is transparent */
13754
+ | "out"
13755
+ /** Foreground and backdrop visible only where the other is not */
13756
+ | "xor"
13757
+ /** Foreground and backdrop channels added (brightening) */
13758
+ | "lighter";
13497
13759
  type ImageInputOptions = {
13498
13760
  encoding?: "base64";
13499
13761
  };
@@ -4039,6 +4039,239 @@ export declare abstract class Span {
4039
4039
  get isTraced(): boolean;
4040
4040
  setAttribute(key: string, value?: boolean | number | string): void;
4041
4041
  }
4042
+ // ============================================================================
4043
+ // Agent Memory
4044
+ //
4045
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4046
+ // ============================================================================
4047
+ /** Memory type — every memory is classified into exactly one. */
4048
+ export type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4049
+ /** Search intensity for recall. */
4050
+ export type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4051
+ /** Response verbosity for recall. */
4052
+ export type AgentMemoryResponseLength = "short" | "medium" | "long";
4053
+ /** A conversation message passed to ingest(). */
4054
+ export interface AgentMemoryMessage {
4055
+ role: "system" | "user" | "assistant";
4056
+ content: string;
4057
+ /** Optional message timestamp. */
4058
+ timestamp?: Date;
4059
+ }
4060
+ /** Raw memory content passed to remember(). */
4061
+ export interface AgentMemoryIncomingMemory {
4062
+ /** Raw memory content. The service classifies and summarizes automatically. */
4063
+ content: string;
4064
+ /** Optional session identifier to associate with this memory. */
4065
+ sessionId?: string | null | undefined;
4066
+ }
4067
+ /** A stored memory returned from remember(), get(), and delete(). */
4068
+ export interface AgentMemoryMemory {
4069
+ /** Memory ID. */
4070
+ id: string;
4071
+ /** Memory type. */
4072
+ type: AgentMemoryMemoryType;
4073
+ /** Text summary. */
4074
+ summary: string;
4075
+ /** Memory text. */
4076
+ content: string;
4077
+ /** Session that created this memory. */
4078
+ sessionId: string | null;
4079
+ /** Memory creation time. */
4080
+ createdAt: Date;
4081
+ /** Memory last-update time. */
4082
+ updatedAt: Date;
4083
+ }
4084
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4085
+ export type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4086
+ /** A scored memory candidate in a recall result. */
4087
+ export interface AgentMemoryScoredCandidate {
4088
+ /** Candidate ID. */
4089
+ id: string;
4090
+ /** Text summary. */
4091
+ summary: string;
4092
+ /** Session that created this candidate, when known. */
4093
+ sessionId: string | null;
4094
+ /** Relevance score (higher is better). Comparable only within a single query. */
4095
+ score: number;
4096
+ }
4097
+ /** Options for the ingest() method. */
4098
+ export interface AgentMemoryIngestOptions {
4099
+ /** Session identifier to associate with memories created during ingestion. */
4100
+ sessionId?: string | null | undefined;
4101
+ }
4102
+ /** Options for the getSummary() method. */
4103
+ export interface AgentMemoryGetSummaryOptions {
4104
+ /** Session identifier to retrieve session summary for. */
4105
+ sessionId?: string | null | undefined;
4106
+ }
4107
+ /** Response from the getSummary() method. */
4108
+ export interface AgentMemoryGetSummaryResponse {
4109
+ /** Markdown summary. */
4110
+ summary: string;
4111
+ }
4112
+ /**
4113
+ * Options for the recall() method.
4114
+ *
4115
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4116
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4117
+ * date is used as "today" for resolving relative time references
4118
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4119
+ */
4120
+ export interface AgentMemoryRecallOptions {
4121
+ /** Recall intensity: "low" (default), "medium", or "high". */
4122
+ thinkingLevel?: AgentMemoryThinkingLevel;
4123
+ /** Response verbosity: "short", "medium" (default), or "long". */
4124
+ responseLength?: AgentMemoryResponseLength;
4125
+ /** Temporal anchor for date arithmetic. */
4126
+ referenceDate?: Date | string;
4127
+ }
4128
+ /** Response from the recall() method. */
4129
+ export interface AgentMemoryRecallResult {
4130
+ /** Number of memories retrieved. */
4131
+ count: number;
4132
+ /** LLM-generated answer synthesizing the matching memories. */
4133
+ answer: string;
4134
+ /** Matching memories ranked by relevance. */
4135
+ candidates: AgentMemoryScoredCandidate[];
4136
+ }
4137
+ /**
4138
+ * Options for the list() method.
4139
+ *
4140
+ * `cursor` is the opaque continuation token returned by the previous page;
4141
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4142
+ * are exact-match filters; combining them is allowed.
4143
+ */
4144
+ export interface AgentMemoryListMemoriesOptions {
4145
+ /** Maximum number of memories to return. Default 20, max 500. */
4146
+ limit?: number;
4147
+ /** Opaque cursor from a previous page. */
4148
+ cursor?: string;
4149
+ /** Exact-match session filter. */
4150
+ sessionId?: string;
4151
+ /** Exact-match memory-type filter. */
4152
+ type?: AgentMemoryMemoryType;
4153
+ }
4154
+ /** Response from the list() method. */
4155
+ export interface AgentMemoryListMemoriesResult {
4156
+ memories: AgentMemoryMemoryListEntry[];
4157
+ /** Continuation cursor; absent when this page exhausted the result set. */
4158
+ cursor?: string;
4159
+ }
4160
+ /**
4161
+ * A single Agent Memory profile, scoped to a profile name.
4162
+ *
4163
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4164
+ */
4165
+ export declare abstract class AgentMemoryProfile {
4166
+ /**
4167
+ * Retrieve a memory by ID.
4168
+ *
4169
+ * @param memoryId - ULID of the memory to retrieve.
4170
+ * @throws if the memory does not exist.
4171
+ */
4172
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4173
+ /**
4174
+ * Delete a memory by ID.
4175
+ *
4176
+ * Removes the memory and any source messages linked by the memory's
4177
+ * source message IDs.
4178
+ *
4179
+ * @param memoryId - ULID of the memory to delete.
4180
+ * @throws if the memory does not exist.
4181
+ */
4182
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4183
+ /**
4184
+ * Store a memory in this profile. The content is automatically classified,
4185
+ * summarized, and indexed.
4186
+ *
4187
+ * @param memory - Raw memory content to persist.
4188
+ */
4189
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4190
+ /**
4191
+ * Extract memories from a conversation.
4192
+ *
4193
+ * @param messages - Conversation messages to extract memories from.
4194
+ * @param options - Optional ingest options.
4195
+ */
4196
+ ingest(
4197
+ messages: Iterable<AgentMemoryMessage>,
4198
+ options?: AgentMemoryIngestOptions,
4199
+ ): Promise<void>;
4200
+ /**
4201
+ * Get a profile summary.
4202
+ *
4203
+ * @param options - Optional getSummary options.
4204
+ */
4205
+ getSummary(
4206
+ options?: AgentMemoryGetSummaryOptions,
4207
+ ): Promise<AgentMemoryGetSummaryResponse>;
4208
+ /**
4209
+ * Recall memories in this profile.
4210
+ *
4211
+ * @param query - Recall query matched against memory content and keywords.
4212
+ * @param options - Optional recall parameters.
4213
+ * @returns Matching memories with relevance scores and a synthesized answer.
4214
+ */
4215
+ recall(
4216
+ query: string,
4217
+ options?: AgentMemoryRecallOptions,
4218
+ ): Promise<AgentMemoryRecallResult>;
4219
+ /**
4220
+ * List active memories in this profile.
4221
+ *
4222
+ * Returns a paginated, filterable view of stored memories. Superseded
4223
+ * versions are excluded. Use the returned `cursor` (when present) to
4224
+ * fetch the next page.
4225
+ *
4226
+ * @param options - Optional pagination and filter options.
4227
+ */
4228
+ list(
4229
+ options?: AgentMemoryListMemoriesOptions,
4230
+ ): Promise<AgentMemoryListMemoriesResult>;
4231
+ /**
4232
+ * Soft-delete every memory and message in this profile that is tagged
4233
+ * with `sessionId`.
4234
+ *
4235
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4236
+ *
4237
+ * @param sessionId - Session to delete.
4238
+ */
4239
+ deleteSession(sessionId: string): Promise<void>;
4240
+ }
4241
+ /**
4242
+ * Namespace-level Agent Memory binding.
4243
+ *
4244
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4245
+ * Memory product.
4246
+ *
4247
+ * @example
4248
+ * ```ts
4249
+ * export default {
4250
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4251
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4252
+ * const summary = await profile.getSummary();
4253
+ * return Response.json(summary);
4254
+ * },
4255
+ * };
4256
+ * ```
4257
+ */
4258
+ export declare abstract class AgentMemoryNamespace {
4259
+ /**
4260
+ * Get a memory profile by name. Profiles are isolated by namespace and
4261
+ * addressed by a compound key (namespaceId:profileName).
4262
+ *
4263
+ * @param profileName - Profile name (validated against naming rules).
4264
+ * @returns RPC target for interacting with the profile.
4265
+ */
4266
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4267
+ /**
4268
+ * Soft-delete a profile and schedule deferred purge. Marks all
4269
+ * memories and messages as deleted.
4270
+ *
4271
+ * @param profileName - Name of the profile to delete.
4272
+ */
4273
+ deleteProfile(profileName: string): Promise<void>;
4274
+ }
4042
4275
  // ============ AI Search Error Interfaces ============
4043
4276
  export interface AiSearchInternalError extends Error {}
4044
4277
  export interface AiSearchNotFoundError extends Error {}
@@ -12158,6 +12391,21 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12158
12391
  * (form a line).
12159
12392
  */
12160
12393
  repeat?: true | "x" | "y";
12394
+ /**
12395
+ * How to combine the foreground and backdrop pixels to create the result
12396
+ */
12397
+ composite?: /** Foreground drawn on top of backdrop (default) */
12398
+ | "over"
12399
+ /** Foreground shown only where backdrop is opaque */
12400
+ | "in"
12401
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12402
+ | "atop"
12403
+ /** Foreground shown only where backdrop is transparent */
12404
+ | "out"
12405
+ /** Foreground and backdrop visible only where the other is not */
12406
+ | "xor"
12407
+ /** Foreground and backdrop channels added (brightening) */
12408
+ | "lighter";
12161
12409
  /**
12162
12410
  * Position of the overlay image relative to a given edge. Each property is
12163
12411
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13509,11 +13757,25 @@ export type ImageTransform = {
13509
13757
  export type ImageDrawOptions = {
13510
13758
  opacity?: number;
13511
13759
  repeat?: boolean | string;
13760
+ composite?: ImageCompositeMode;
13512
13761
  top?: number;
13513
13762
  left?: number;
13514
13763
  bottom?: number;
13515
13764
  right?: number;
13516
13765
  };
13766
+ export type ImageCompositeMode =
13767
+ /** Foreground drawn on top of backdrop (default) */
13768
+ | "over"
13769
+ /** Foreground shown only where backdrop is opaque */
13770
+ | "in"
13771
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13772
+ | "atop"
13773
+ /** Foreground shown only where backdrop is transparent */
13774
+ | "out"
13775
+ /** Foreground and backdrop visible only where the other is not */
13776
+ | "xor"
13777
+ /** Foreground and backdrop channels added (brightening) */
13778
+ | "lighter";
13517
13779
  export type ImageInputOptions = {
13518
13780
  encoding?: "base64";
13519
13781
  };