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