@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.
package/latest/index.d.ts CHANGED
@@ -4066,6 +4066,239 @@ declare abstract class Span {
4066
4066
  get isTraced(): boolean;
4067
4067
  setAttribute(key: string, value?: boolean | number | string): void;
4068
4068
  }
4069
+ // ============================================================================
4070
+ // Agent Memory
4071
+ //
4072
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4073
+ // ============================================================================
4074
+ /** Memory type — every memory is classified into exactly one. */
4075
+ type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4076
+ /** Search intensity for recall. */
4077
+ type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4078
+ /** Response verbosity for recall. */
4079
+ type AgentMemoryResponseLength = "short" | "medium" | "long";
4080
+ /** A conversation message passed to ingest(). */
4081
+ interface AgentMemoryMessage {
4082
+ role: "system" | "user" | "assistant";
4083
+ content: string;
4084
+ /** Optional message timestamp. */
4085
+ timestamp?: Date;
4086
+ }
4087
+ /** Raw memory content passed to remember(). */
4088
+ interface AgentMemoryIncomingMemory {
4089
+ /** Raw memory content. The service classifies and summarizes automatically. */
4090
+ content: string;
4091
+ /** Optional session identifier to associate with this memory. */
4092
+ sessionId?: string | null | undefined;
4093
+ }
4094
+ /** A stored memory returned from remember(), get(), and delete(). */
4095
+ interface AgentMemoryMemory {
4096
+ /** Memory ID. */
4097
+ id: string;
4098
+ /** Memory type. */
4099
+ type: AgentMemoryMemoryType;
4100
+ /** Text summary. */
4101
+ summary: string;
4102
+ /** Memory text. */
4103
+ content: string;
4104
+ /** Session that created this memory. */
4105
+ sessionId: string | null;
4106
+ /** Memory creation time. */
4107
+ createdAt: Date;
4108
+ /** Memory last-update time. */
4109
+ updatedAt: Date;
4110
+ }
4111
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4112
+ type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4113
+ /** A scored memory candidate in a recall result. */
4114
+ interface AgentMemoryScoredCandidate {
4115
+ /** Candidate ID. */
4116
+ id: string;
4117
+ /** Text summary. */
4118
+ summary: string;
4119
+ /** Session that created this candidate, when known. */
4120
+ sessionId: string | null;
4121
+ /** Relevance score (higher is better). Comparable only within a single query. */
4122
+ score: number;
4123
+ }
4124
+ /** Options for the ingest() method. */
4125
+ interface AgentMemoryIngestOptions {
4126
+ /** Session identifier to associate with memories created during ingestion. */
4127
+ sessionId?: string | null | undefined;
4128
+ }
4129
+ /** Options for the getSummary() method. */
4130
+ interface AgentMemoryGetSummaryOptions {
4131
+ /** Session identifier to retrieve session summary for. */
4132
+ sessionId?: string | null | undefined;
4133
+ }
4134
+ /** Response from the getSummary() method. */
4135
+ interface AgentMemoryGetSummaryResponse {
4136
+ /** Markdown summary. */
4137
+ summary: string;
4138
+ }
4139
+ /**
4140
+ * Options for the recall() method.
4141
+ *
4142
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4143
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4144
+ * date is used as "today" for resolving relative time references
4145
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4146
+ */
4147
+ interface AgentMemoryRecallOptions {
4148
+ /** Recall intensity: "low" (default), "medium", or "high". */
4149
+ thinkingLevel?: AgentMemoryThinkingLevel;
4150
+ /** Response verbosity: "short", "medium" (default), or "long". */
4151
+ responseLength?: AgentMemoryResponseLength;
4152
+ /** Temporal anchor for date arithmetic. */
4153
+ referenceDate?: Date | string;
4154
+ }
4155
+ /** Response from the recall() method. */
4156
+ interface AgentMemoryRecallResult {
4157
+ /** Number of memories retrieved. */
4158
+ count: number;
4159
+ /** LLM-generated answer synthesizing the matching memories. */
4160
+ answer: string;
4161
+ /** Matching memories ranked by relevance. */
4162
+ candidates: AgentMemoryScoredCandidate[];
4163
+ }
4164
+ /**
4165
+ * Options for the list() method.
4166
+ *
4167
+ * `cursor` is the opaque continuation token returned by the previous page;
4168
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4169
+ * are exact-match filters; combining them is allowed.
4170
+ */
4171
+ interface AgentMemoryListMemoriesOptions {
4172
+ /** Maximum number of memories to return. Default 20, max 500. */
4173
+ limit?: number;
4174
+ /** Opaque cursor from a previous page. */
4175
+ cursor?: string;
4176
+ /** Exact-match session filter. */
4177
+ sessionId?: string;
4178
+ /** Exact-match memory-type filter. */
4179
+ type?: AgentMemoryMemoryType;
4180
+ }
4181
+ /** Response from the list() method. */
4182
+ interface AgentMemoryListMemoriesResult {
4183
+ memories: AgentMemoryMemoryListEntry[];
4184
+ /** Continuation cursor; absent when this page exhausted the result set. */
4185
+ cursor?: string;
4186
+ }
4187
+ /**
4188
+ * A single Agent Memory profile, scoped to a profile name.
4189
+ *
4190
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4191
+ */
4192
+ declare abstract class AgentMemoryProfile {
4193
+ /**
4194
+ * Retrieve a memory by ID.
4195
+ *
4196
+ * @param memoryId - ULID of the memory to retrieve.
4197
+ * @throws if the memory does not exist.
4198
+ */
4199
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4200
+ /**
4201
+ * Delete a memory by ID.
4202
+ *
4203
+ * Removes the memory and any source messages linked by the memory's
4204
+ * source message IDs.
4205
+ *
4206
+ * @param memoryId - ULID of the memory to delete.
4207
+ * @throws if the memory does not exist.
4208
+ */
4209
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4210
+ /**
4211
+ * Store a memory in this profile. The content is automatically classified,
4212
+ * summarized, and indexed.
4213
+ *
4214
+ * @param memory - Raw memory content to persist.
4215
+ */
4216
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4217
+ /**
4218
+ * Extract memories from a conversation.
4219
+ *
4220
+ * @param messages - Conversation messages to extract memories from.
4221
+ * @param options - Optional ingest options.
4222
+ */
4223
+ ingest(
4224
+ messages: Iterable<AgentMemoryMessage>,
4225
+ options?: AgentMemoryIngestOptions,
4226
+ ): Promise<void>;
4227
+ /**
4228
+ * Get a profile summary.
4229
+ *
4230
+ * @param options - Optional getSummary options.
4231
+ */
4232
+ getSummary(
4233
+ options?: AgentMemoryGetSummaryOptions,
4234
+ ): Promise<AgentMemoryGetSummaryResponse>;
4235
+ /**
4236
+ * Recall memories in this profile.
4237
+ *
4238
+ * @param query - Recall query matched against memory content and keywords.
4239
+ * @param options - Optional recall parameters.
4240
+ * @returns Matching memories with relevance scores and a synthesized answer.
4241
+ */
4242
+ recall(
4243
+ query: string,
4244
+ options?: AgentMemoryRecallOptions,
4245
+ ): Promise<AgentMemoryRecallResult>;
4246
+ /**
4247
+ * List active memories in this profile.
4248
+ *
4249
+ * Returns a paginated, filterable view of stored memories. Superseded
4250
+ * versions are excluded. Use the returned `cursor` (when present) to
4251
+ * fetch the next page.
4252
+ *
4253
+ * @param options - Optional pagination and filter options.
4254
+ */
4255
+ list(
4256
+ options?: AgentMemoryListMemoriesOptions,
4257
+ ): Promise<AgentMemoryListMemoriesResult>;
4258
+ /**
4259
+ * Soft-delete every memory and message in this profile that is tagged
4260
+ * with `sessionId`.
4261
+ *
4262
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4263
+ *
4264
+ * @param sessionId - Session to delete.
4265
+ */
4266
+ deleteSession(sessionId: string): Promise<void>;
4267
+ }
4268
+ /**
4269
+ * Namespace-level Agent Memory binding.
4270
+ *
4271
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4272
+ * Memory product.
4273
+ *
4274
+ * @example
4275
+ * ```ts
4276
+ * export default {
4277
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4278
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4279
+ * const summary = await profile.getSummary();
4280
+ * return Response.json(summary);
4281
+ * },
4282
+ * };
4283
+ * ```
4284
+ */
4285
+ declare abstract class AgentMemoryNamespace {
4286
+ /**
4287
+ * Get a memory profile by name. Profiles are isolated by namespace and
4288
+ * addressed by a compound key (namespaceId:profileName).
4289
+ *
4290
+ * @param profileName - Profile name (validated against naming rules).
4291
+ * @returns RPC target for interacting with the profile.
4292
+ */
4293
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4294
+ /**
4295
+ * Soft-delete a profile and schedule deferred purge. Marks all
4296
+ * memories and messages as deleted.
4297
+ *
4298
+ * @param profileName - Name of the profile to delete.
4299
+ */
4300
+ deleteProfile(profileName: string): Promise<void>;
4301
+ }
4069
4302
  // ============ AI Search Error Interfaces ============
4070
4303
  interface AiSearchInternalError extends Error {}
4071
4304
  interface AiSearchNotFoundError extends Error {}
@@ -12179,6 +12412,21 @@ interface RequestInitCfPropertiesImageDraw extends BasicImageTransformations {
12179
12412
  * (form a line).
12180
12413
  */
12181
12414
  repeat?: true | "x" | "y";
12415
+ /**
12416
+ * How to combine the foreground and backdrop pixels to create the result
12417
+ */
12418
+ composite?: /** Foreground drawn on top of backdrop (default) */
12419
+ | "over"
12420
+ /** Foreground shown only where backdrop is opaque */
12421
+ | "in"
12422
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12423
+ | "atop"
12424
+ /** Foreground shown only where backdrop is transparent */
12425
+ | "out"
12426
+ /** Foreground and backdrop visible only where the other is not */
12427
+ | "xor"
12428
+ /** Foreground and backdrop channels added (brightening) */
12429
+ | "lighter";
12182
12430
  /**
12183
12431
  * Position of the overlay image relative to a given edge. Each property is
12184
12432
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13522,11 +13770,25 @@ type ImageTransform = {
13522
13770
  type ImageDrawOptions = {
13523
13771
  opacity?: number;
13524
13772
  repeat?: boolean | string;
13773
+ composite?: ImageCompositeMode;
13525
13774
  top?: number;
13526
13775
  left?: number;
13527
13776
  bottom?: number;
13528
13777
  right?: number;
13529
13778
  };
13779
+ type ImageCompositeMode =
13780
+ /** Foreground drawn on top of backdrop (default) */
13781
+ | "over"
13782
+ /** Foreground shown only where backdrop is opaque */
13783
+ | "in"
13784
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13785
+ | "atop"
13786
+ /** Foreground shown only where backdrop is transparent */
13787
+ | "out"
13788
+ /** Foreground and backdrop visible only where the other is not */
13789
+ | "xor"
13790
+ /** Foreground and backdrop channels added (brightening) */
13791
+ | "lighter";
13530
13792
  type ImageInputOptions = {
13531
13793
  encoding?: "base64";
13532
13794
  };
package/latest/index.ts CHANGED
@@ -4072,6 +4072,239 @@ export declare abstract class Span {
4072
4072
  get isTraced(): boolean;
4073
4073
  setAttribute(key: string, value?: boolean | number | string): void;
4074
4074
  }
4075
+ // ============================================================================
4076
+ // Agent Memory
4077
+ //
4078
+ // Public type surface for user Workers binding to an Agent Memory namespace.
4079
+ // ============================================================================
4080
+ /** Memory type — every memory is classified into exactly one. */
4081
+ export type AgentMemoryMemoryType = "fact" | "event" | "instruction" | "task";
4082
+ /** Search intensity for recall. */
4083
+ export type AgentMemoryThinkingLevel = "low" | "medium" | "high";
4084
+ /** Response verbosity for recall. */
4085
+ export type AgentMemoryResponseLength = "short" | "medium" | "long";
4086
+ /** A conversation message passed to ingest(). */
4087
+ export interface AgentMemoryMessage {
4088
+ role: "system" | "user" | "assistant";
4089
+ content: string;
4090
+ /** Optional message timestamp. */
4091
+ timestamp?: Date;
4092
+ }
4093
+ /** Raw memory content passed to remember(). */
4094
+ export interface AgentMemoryIncomingMemory {
4095
+ /** Raw memory content. The service classifies and summarizes automatically. */
4096
+ content: string;
4097
+ /** Optional session identifier to associate with this memory. */
4098
+ sessionId?: string | null | undefined;
4099
+ }
4100
+ /** A stored memory returned from remember(), get(), and delete(). */
4101
+ export interface AgentMemoryMemory {
4102
+ /** Memory ID. */
4103
+ id: string;
4104
+ /** Memory type. */
4105
+ type: AgentMemoryMemoryType;
4106
+ /** Text summary. */
4107
+ summary: string;
4108
+ /** Memory text. */
4109
+ content: string;
4110
+ /** Session that created this memory. */
4111
+ sessionId: string | null;
4112
+ /** Memory creation time. */
4113
+ createdAt: Date;
4114
+ /** Memory last-update time. */
4115
+ updatedAt: Date;
4116
+ }
4117
+ /** Single entry in a list() response. Same shape as Memory minus full content. */
4118
+ export type AgentMemoryMemoryListEntry = Omit<AgentMemoryMemory, "content">;
4119
+ /** A scored memory candidate in a recall result. */
4120
+ export interface AgentMemoryScoredCandidate {
4121
+ /** Candidate ID. */
4122
+ id: string;
4123
+ /** Text summary. */
4124
+ summary: string;
4125
+ /** Session that created this candidate, when known. */
4126
+ sessionId: string | null;
4127
+ /** Relevance score (higher is better). Comparable only within a single query. */
4128
+ score: number;
4129
+ }
4130
+ /** Options for the ingest() method. */
4131
+ export interface AgentMemoryIngestOptions {
4132
+ /** Session identifier to associate with memories created during ingestion. */
4133
+ sessionId?: string | null | undefined;
4134
+ }
4135
+ /** Options for the getSummary() method. */
4136
+ export interface AgentMemoryGetSummaryOptions {
4137
+ /** Session identifier to retrieve session summary for. */
4138
+ sessionId?: string | null | undefined;
4139
+ }
4140
+ /** Response from the getSummary() method. */
4141
+ export interface AgentMemoryGetSummaryResponse {
4142
+ /** Markdown summary. */
4143
+ summary: string;
4144
+ }
4145
+ /**
4146
+ * Options for the recall() method.
4147
+ *
4148
+ * `referenceDate` accepts a Date object, an ISO-8601 date string
4149
+ * (YYYY-MM-DD), or a full ISO-8601 datetime string. When provided, this
4150
+ * date is used as "today" for resolving relative time references
4151
+ * ("how many days ago", "last week") instead of the server's wall-clock time.
4152
+ */
4153
+ export interface AgentMemoryRecallOptions {
4154
+ /** Recall intensity: "low" (default), "medium", or "high". */
4155
+ thinkingLevel?: AgentMemoryThinkingLevel;
4156
+ /** Response verbosity: "short", "medium" (default), or "long". */
4157
+ responseLength?: AgentMemoryResponseLength;
4158
+ /** Temporal anchor for date arithmetic. */
4159
+ referenceDate?: Date | string;
4160
+ }
4161
+ /** Response from the recall() method. */
4162
+ export interface AgentMemoryRecallResult {
4163
+ /** Number of memories retrieved. */
4164
+ count: number;
4165
+ /** LLM-generated answer synthesizing the matching memories. */
4166
+ answer: string;
4167
+ /** Matching memories ranked by relevance. */
4168
+ candidates: AgentMemoryScoredCandidate[];
4169
+ }
4170
+ /**
4171
+ * Options for the list() method.
4172
+ *
4173
+ * `cursor` is the opaque continuation token returned by the previous page;
4174
+ * pass it back unchanged to fetch the next page. `sessionId` and `type`
4175
+ * are exact-match filters; combining them is allowed.
4176
+ */
4177
+ export interface AgentMemoryListMemoriesOptions {
4178
+ /** Maximum number of memories to return. Default 20, max 500. */
4179
+ limit?: number;
4180
+ /** Opaque cursor from a previous page. */
4181
+ cursor?: string;
4182
+ /** Exact-match session filter. */
4183
+ sessionId?: string;
4184
+ /** Exact-match memory-type filter. */
4185
+ type?: AgentMemoryMemoryType;
4186
+ }
4187
+ /** Response from the list() method. */
4188
+ export interface AgentMemoryListMemoriesResult {
4189
+ memories: AgentMemoryMemoryListEntry[];
4190
+ /** Continuation cursor; absent when this page exhausted the result set. */
4191
+ cursor?: string;
4192
+ }
4193
+ /**
4194
+ * A single Agent Memory profile, scoped to a profile name.
4195
+ *
4196
+ * Returned by {@link AgentMemoryNamespace.getProfile}.
4197
+ */
4198
+ export declare abstract class AgentMemoryProfile {
4199
+ /**
4200
+ * Retrieve a memory by ID.
4201
+ *
4202
+ * @param memoryId - ULID of the memory to retrieve.
4203
+ * @throws if the memory does not exist.
4204
+ */
4205
+ get(memoryId: string): Promise<AgentMemoryMemory>;
4206
+ /**
4207
+ * Delete a memory by ID.
4208
+ *
4209
+ * Removes the memory and any source messages linked by the memory's
4210
+ * source message IDs.
4211
+ *
4212
+ * @param memoryId - ULID of the memory to delete.
4213
+ * @throws if the memory does not exist.
4214
+ */
4215
+ delete(memoryId: string): Promise<AgentMemoryMemory>;
4216
+ /**
4217
+ * Store a memory in this profile. The content is automatically classified,
4218
+ * summarized, and indexed.
4219
+ *
4220
+ * @param memory - Raw memory content to persist.
4221
+ */
4222
+ remember(memory: AgentMemoryIncomingMemory): Promise<AgentMemoryMemory>;
4223
+ /**
4224
+ * Extract memories from a conversation.
4225
+ *
4226
+ * @param messages - Conversation messages to extract memories from.
4227
+ * @param options - Optional ingest options.
4228
+ */
4229
+ ingest(
4230
+ messages: Iterable<AgentMemoryMessage>,
4231
+ options?: AgentMemoryIngestOptions,
4232
+ ): Promise<void>;
4233
+ /**
4234
+ * Get a profile summary.
4235
+ *
4236
+ * @param options - Optional getSummary options.
4237
+ */
4238
+ getSummary(
4239
+ options?: AgentMemoryGetSummaryOptions,
4240
+ ): Promise<AgentMemoryGetSummaryResponse>;
4241
+ /**
4242
+ * Recall memories in this profile.
4243
+ *
4244
+ * @param query - Recall query matched against memory content and keywords.
4245
+ * @param options - Optional recall parameters.
4246
+ * @returns Matching memories with relevance scores and a synthesized answer.
4247
+ */
4248
+ recall(
4249
+ query: string,
4250
+ options?: AgentMemoryRecallOptions,
4251
+ ): Promise<AgentMemoryRecallResult>;
4252
+ /**
4253
+ * List active memories in this profile.
4254
+ *
4255
+ * Returns a paginated, filterable view of stored memories. Superseded
4256
+ * versions are excluded. Use the returned `cursor` (when present) to
4257
+ * fetch the next page.
4258
+ *
4259
+ * @param options - Optional pagination and filter options.
4260
+ */
4261
+ list(
4262
+ options?: AgentMemoryListMemoriesOptions,
4263
+ ): Promise<AgentMemoryListMemoriesResult>;
4264
+ /**
4265
+ * Soft-delete every memory and message in this profile that is tagged
4266
+ * with `sessionId`.
4267
+ *
4268
+ * Idempotent: deleting a sessionId that has no rows is a no-op.
4269
+ *
4270
+ * @param sessionId - Session to delete.
4271
+ */
4272
+ deleteSession(sessionId: string): Promise<void>;
4273
+ }
4274
+ /**
4275
+ * Namespace-level Agent Memory binding.
4276
+ *
4277
+ * Used as the type of an `env.MEMORY`-style binding backed by the Agent
4278
+ * Memory product.
4279
+ *
4280
+ * @example
4281
+ * ```ts
4282
+ * export default {
4283
+ * async fetch(_request: Request, env: Env): Promise<Response> {
4284
+ * const profile = await env.MEMORY.getProfile("wrangler-e2e");
4285
+ * const summary = await profile.getSummary();
4286
+ * return Response.json(summary);
4287
+ * },
4288
+ * };
4289
+ * ```
4290
+ */
4291
+ export declare abstract class AgentMemoryNamespace {
4292
+ /**
4293
+ * Get a memory profile by name. Profiles are isolated by namespace and
4294
+ * addressed by a compound key (namespaceId:profileName).
4295
+ *
4296
+ * @param profileName - Profile name (validated against naming rules).
4297
+ * @returns RPC target for interacting with the profile.
4298
+ */
4299
+ getProfile(profileName: string): Promise<AgentMemoryProfile>;
4300
+ /**
4301
+ * Soft-delete a profile and schedule deferred purge. Marks all
4302
+ * memories and messages as deleted.
4303
+ *
4304
+ * @param profileName - Name of the profile to delete.
4305
+ */
4306
+ deleteProfile(profileName: string): Promise<void>;
4307
+ }
4075
4308
  // ============ AI Search Error Interfaces ============
4076
4309
  export interface AiSearchInternalError extends Error {}
4077
4310
  export interface AiSearchNotFoundError extends Error {}
@@ -12191,6 +12424,21 @@ export interface RequestInitCfPropertiesImageDraw extends BasicImageTransformati
12191
12424
  * (form a line).
12192
12425
  */
12193
12426
  repeat?: true | "x" | "y";
12427
+ /**
12428
+ * How to combine the foreground and backdrop pixels to create the result
12429
+ */
12430
+ composite?: /** Foreground drawn on top of backdrop (default) */
12431
+ | "over"
12432
+ /** Foreground shown only where backdrop is opaque */
12433
+ | "in"
12434
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
12435
+ | "atop"
12436
+ /** Foreground shown only where backdrop is transparent */
12437
+ | "out"
12438
+ /** Foreground and backdrop visible only where the other is not */
12439
+ | "xor"
12440
+ /** Foreground and backdrop channels added (brightening) */
12441
+ | "lighter";
12194
12442
  /**
12195
12443
  * Position of the overlay image relative to a given edge. Each property is
12196
12444
  * an offset in pixels. 0 aligns exactly to the edge. For example, left: 10
@@ -13542,11 +13790,25 @@ export type ImageTransform = {
13542
13790
  export type ImageDrawOptions = {
13543
13791
  opacity?: number;
13544
13792
  repeat?: boolean | string;
13793
+ composite?: ImageCompositeMode;
13545
13794
  top?: number;
13546
13795
  left?: number;
13547
13796
  bottom?: number;
13548
13797
  right?: number;
13549
13798
  };
13799
+ export type ImageCompositeMode =
13800
+ /** Foreground drawn on top of backdrop (default) */
13801
+ | "over"
13802
+ /** Foreground shown only where backdrop is opaque */
13803
+ | "in"
13804
+ /** Foreground drawn on top, but clipped to the backdrop's shape */
13805
+ | "atop"
13806
+ /** Foreground shown only where backdrop is transparent */
13807
+ | "out"
13808
+ /** Foreground and backdrop visible only where the other is not */
13809
+ | "xor"
13810
+ /** Foreground and backdrop channels added (brightening) */
13811
+ | "lighter";
13550
13812
  export type ImageInputOptions = {
13551
13813
  encoding?: "base64";
13552
13814
  };