cdk-local 0.166.1 → 0.166.2

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.
@@ -1,4 +1,4 @@
1
- import { $ as mergeJavaToolOptions, $n as buildEcsImageResolutionContext, $r as resolveWatchConfig, $t as MicrovmHookConfig, A as CA_TRUST_ENV_KEYS, Aa as setAwsEndpointOverride, Ar as CognitoUserPoolAuthorizer, At as assumedRoleRecorded, B as WorkloadAwsWiringCommandOptions, Bn as MAX_TASKS_SUBNET_RANGE_CAP, Br as discoverWebSocketApisOrThrow, C as StudioEventBus, Ca as deployArtifactClientConfig, Ci as substituteImagePlaceholders, Cn as resolveCloudFrontTarget, Ct as realAwsEndpointFor, D as StudioTargetKind, Da as isProxyEnvConfigured, Dr as createWatchPredicates, Dt as validateAwsEmulatorEnvVars, E as StudioServeEvent, Ea as isAwsServiceRoutedToEmulator, En as albStrategy, Et as resourceTypeMatchesService, F as HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS, Fn as addRunTaskSpecificOptions, Fr as attachAuthorizers, Ft as workloadClientConfig, G as collectHostEndpointOverrides, Gi as WorkloadRouteGroup, Gn as PlannedForwardTarget, Gr as RestV1IntegrationConfig, H as activateWorkloadAwsWiring, Hn as PlannedEcsForwardTarget, Hr as parseSelectionExpressionPath, I as MixedModeWiring, Ir as DiscoveredWebSocketApi, It as workloadStsClientConfig, J as getActiveWorkloadAwsWiring, Jn as PlannedRedirectAction, Jr as evaluateResponseParameters, Jt as readRunHookPayload, K as displayEndpointValue, Kn as PlannedFrontDoorListener, Kr as discoverRoutes, Kt as finalizeMicrovmEnv, L as ParsedAwsEndpoint, Ln as EcsServiceEmulatorOptions, Lr as WebSocketRouteEntry, M as EMULATOR_SCRUBBED_ENV_KEYS, Mi as ResolvedZipLambda, Mr as LambdaRequestAuthorizer, Mt as readEnvCallerCredentials, N as EmulatorRunFiles, Ni as StackInfo, Nn as serviceStrategy, Nr as LambdaTokenAuthorizer, Nt as recordAssumedRole, O as AUTH_OFF_PLACEHOLDER_CREDENTIALS, Oa as normalizeAwsEndpointServiceId, On as parseLbPortOverrides, Or as resolveApiTargetSubset, Ot as CallerCredentials, P as HOST_CA_TRUST_ENV_KEYS, Pr as RouteWithAuth, Pt as resetWorkloadIdentity, Q as loopbackForwarderPlan, Qn as addImageOverrideOptions, Qr as CdkWatchConfig, Qt as MicrovmCodeArtifact, R as ResolveWorkloadAwsWiringOptions, Rn as EmulatorStrategy, Rr as availableWebSocketApiIdentifiers, S as createStudioDispatcher, Sa as buildProxyClientConfig, Si as formatStateRemedy, Sn as parseOriginOverrides, Sr as ApiTargetSubset, St as readAwsEmulatorEnvVarsFile, T as StudioLogEvent, Ta as getAwsEndpointOverride, Tn as addAlbSpecificOptions, Tr as addStartApiSpecificOptions, Tt as realAwsServicesOf, U as applyWorkloadAwsWiringToEnv, Un as PlannedFixedResponseAction, Ur as webSocketApiMatchesIdentifier, Ut as addStartMicrovmSpecificOptions, V as WorkloadMount, Vn as PlannedAction, Vr as filterWebSocketApisByIdentifiers, W as awsEmulatorEnvName, Wi as UNNAMED_WORKLOAD, Wn as PlannedForwardAction, Wr as DiscoveredRoute, Wt as buildMicrovmLambdaView, X as getContainerJavaTruststorePath, Xn as addCommonEcsServiceOptions, Xr as selectIntegrationResponse, Xt as MICROVM_IMAGE_TYPE, Y as getContainerCaBundlePath, Yn as ServiceBoot, Yr as pickResponseTemplate, Yt as MICROVM_DEFAULT_INGRESS_PORT, Z as javaTruststoreToolOptions, Zn as addEcsAssumeRoleOptions, Zr as tryParseStatus, Zt as MicrovmBuildHook, _ as startStudioProxy, _a as AwsEndpointOverride, _i as InvokeAgentCoreWsOptions, _n as LocalStartCloudFrontError, _t as findLegacyAwsEmulatorSentinels, a as coerceServeRequest, ai as addInvokeAgentCoreSpecificOptions, an as disposeMicrovmCodeArtifact, ar as runEcsServiceEmulator, at as resolveHostDefaultCredentials, b as StudioRunRequest, ba as awsEmulatorRealServices, bi as ImageResolutionContext, bn as normalizeKvsFileKeys, br as EcsTaskResolutionError, bt as isRealAwsSentinel, c as resolveServeBaseUrl, ci as AssetManifest, cn as resolveMicrovmImageTarget, cr as isApplicationLoadBalancer, ct as takeAwsEmulatorStateSourceHint, d as StudioServeRequest, di as EnvOverrideFile, dn as addStartWebFunctionSpecificOptions, dr as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, dt as LEGACY_AWS_EMULATOR_SENTINEL, ei as buildStsClientConfig, en as MicrovmHookName, er as ecsClusterOption, et as parseAwsEndpoint, f as StudioServeState, fi as readEnvVarsFileText, fr as setShadowReadyTimeoutMs, ft as MIXED_MODE_RESIGN_PORT, g as StudioProxyConfig, ga as AwsEmulatorWorkload, gi as BridgeAgentCoreWsOptions, gt as createMixedModeStateProvider, h as RunningStudioProxy, ha as AwsEmulatorServiceRouting, hi as AgentCoreWsResult, hr as TargetListing, ht as RealAwsException, i as coerceRunRequest, in as ResolvedMicrovmImage, ir as resolveSharedSidecarCredentials, it as resolveAwsEmulatorOption, j as DEFAULT_AWS_EMULATOR_URL, ji as ResolvedArnLambdaLayer, jn as addStartServiceSpecificOptions, jr as JwtAuthorizer, jt as deployAccountStsClientConfig, k as AwsEmulatorSidecarWiring, ka as setAwsEmulatorServiceRouting, ki as addInvokeSpecificOptions, kn as resolveAlbTarget, kr as AuthorizerInfo, kt as SECOND_ASSUME_MESSAGE, l as StudioServeManager, li as DockerImageAssetSource, ln as s3KeyOfUri, lr as resolveAlbFrontDoor, lt as writeCaBundleFile, m as createStudioServeManager, ma as TemplateResource, mi as AgentCoreWsBridgeHandle, mn as addStartAgentCoreSpecificOptions, mr as TargetEntry, mt as REAL_AWS_SENTINEL, n as StudioServeRequestPayload, ni as addAwsEndpointOptions, nn as MicrovmResolutionError, nr as parseRestartPolicy, nt as readEmulatorRunFiles, o as coerceStopRequest, on as readMicrovmImageConfig, or as FrontDoorForwardTarget, ot as resolveWorkloadAwsWiring, p as StudioStopRequest, pa as CloudFormationTemplate, pi as resolveEnvVars, pr as ResolvedEcsService, pt as MixedModeStateProviderOptions, q as effectiveLoopbackPorts, qi as groupWorkloadsRoutedApart, qn as PlannedLambdaForwardTarget, qr as IntegrationResponseEntry, qt as microvmFidelityWarnings, r as addStudioSpecificOptions, ri as awsEndpointOptions, rn as MicrovmRuntimeHook, rr as resolveEcsAssumeRoleOption, rt as readProfileEndpointSettings, si as AssetManifestLoader, sn as resolveMicrovmCodeArtifact, sr as ResolvedListenerAction, st as setActiveWorkloadAwsWiring, ti as resolveProfileCredentials, tn as MicrovmImageConfig, tr as parseMaxTasks, tt as probeAwsEmulatorHealth, u as StudioServeManagerConfig, ui as FileAsset, ur as DEFAULT_SHADOW_READY_TIMEOUT_MS, ut as AwsEmulatorEnvVarsScan, v as StudioDispatchConfig, va as AwsProxyClientConfig, vi as bridgeAgentCoreWs, vn as addStartCloudFrontSpecificOptions, vr as CdkLocalError, vt as findRealAwsExceptions, w as StudioInvocationEvent, wa as getAwsEmulatorServiceRouting, wi as tryResolveImageFnJoin, wr as WatchPredicates, wt as realAwsServicesForWorkload, x as StudioRunResult, xa as awsEndpointOverrideClientConfig, xi as derivePseudoParametersFromRegion, xn as parseKvsFileOverrides, xr as assertEcsTaskImagesResolvable, xt as legacyAwsEmulatorSentinelMessage, y as StudioDispatcher, ya as awsClientConfigForService, yi as invokeAgentCoreWs, yr as LocalInvokeBuildError, yt as isLegacyAwsEmulatorSentinel, z as WorkloadAwsWiring, zn as FrontDoorPlan, zr as discoverWebSocketApis, zt as addListSpecificOptions } from "./local-studio-BF_pYaBC.js";
1
+ import { $ as mergeJavaToolOptions, $n as buildEcsImageResolutionContext, $r as resolveWatchConfig, $t as MicrovmHookConfig, A as CA_TRUST_ENV_KEYS, Aa as setAwsEndpointOverride, Ar as CognitoUserPoolAuthorizer, At as assumedRoleRecorded, B as WorkloadAwsWiringCommandOptions, Bn as MAX_TASKS_SUBNET_RANGE_CAP, Br as discoverWebSocketApisOrThrow, C as StudioEventBus, Ca as deployArtifactClientConfig, Ci as substituteImagePlaceholders, Cn as resolveCloudFrontTarget, Ct as realAwsEndpointFor, D as StudioTargetKind, Da as isProxyEnvConfigured, Dr as createWatchPredicates, Dt as validateAwsEmulatorEnvVars, E as StudioServeEvent, Ea as isAwsServiceRoutedToEmulator, En as albStrategy, Et as resourceTypeMatchesService, F as HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS, Fn as addRunTaskSpecificOptions, Fr as attachAuthorizers, Ft as workloadClientConfig, G as collectHostEndpointOverrides, Gi as WorkloadRouteGroup, Gn as PlannedForwardTarget, Gr as RestV1IntegrationConfig, H as activateWorkloadAwsWiring, Hn as PlannedEcsForwardTarget, Hr as parseSelectionExpressionPath, I as MixedModeWiring, Ir as DiscoveredWebSocketApi, It as workloadStsClientConfig, J as getActiveWorkloadAwsWiring, Jn as PlannedRedirectAction, Jr as evaluateResponseParameters, Jt as readRunHookPayload, K as displayEndpointValue, Kn as PlannedFrontDoorListener, Kr as discoverRoutes, Kt as finalizeMicrovmEnv, L as ParsedAwsEndpoint, Ln as EcsServiceEmulatorOptions, Lr as WebSocketRouteEntry, M as EMULATOR_SCRUBBED_ENV_KEYS, Mi as ResolvedZipLambda, Mr as LambdaRequestAuthorizer, Mt as readEnvCallerCredentials, N as EmulatorRunFiles, Ni as StackInfo, Nn as serviceStrategy, Nr as LambdaTokenAuthorizer, Nt as recordAssumedRole, O as AUTH_OFF_PLACEHOLDER_CREDENTIALS, Oa as normalizeAwsEndpointServiceId, On as parseLbPortOverrides, Or as resolveApiTargetSubset, Ot as CallerCredentials, P as HOST_CA_TRUST_ENV_KEYS, Pr as RouteWithAuth, Pt as resetWorkloadIdentity, Q as loopbackForwarderPlan, Qn as addImageOverrideOptions, Qr as CdkWatchConfig, Qt as MicrovmCodeArtifact, R as ResolveWorkloadAwsWiringOptions, Rn as EmulatorStrategy, Rr as availableWebSocketApiIdentifiers, S as createStudioDispatcher, Sa as buildProxyClientConfig, Si as formatStateRemedy, Sn as parseOriginOverrides, Sr as ApiTargetSubset, St as readAwsEmulatorEnvVarsFile, T as StudioLogEvent, Ta as getAwsEndpointOverride, Tn as addAlbSpecificOptions, Tr as addStartApiSpecificOptions, Tt as realAwsServicesOf, U as applyWorkloadAwsWiringToEnv, Un as PlannedFixedResponseAction, Ur as webSocketApiMatchesIdentifier, Ut as addStartMicrovmSpecificOptions, V as WorkloadMount, Vn as PlannedAction, Vr as filterWebSocketApisByIdentifiers, W as awsEmulatorEnvName, Wi as UNNAMED_WORKLOAD, Wn as PlannedForwardAction, Wr as DiscoveredRoute, Wt as buildMicrovmLambdaView, X as getContainerJavaTruststorePath, Xn as addCommonEcsServiceOptions, Xr as selectIntegrationResponse, Xt as MICROVM_IMAGE_TYPE, Y as getContainerCaBundlePath, Yn as ServiceBoot, Yr as pickResponseTemplate, Yt as MICROVM_DEFAULT_INGRESS_PORT, Z as javaTruststoreToolOptions, Zn as addEcsAssumeRoleOptions, Zr as tryParseStatus, Zt as MicrovmBuildHook, _ as startStudioProxy, _a as AwsEndpointOverride, _i as InvokeAgentCoreWsOptions, _n as LocalStartCloudFrontError, _t as findLegacyAwsEmulatorSentinels, a as coerceServeRequest, ai as addInvokeAgentCoreSpecificOptions, an as disposeMicrovmCodeArtifact, ar as runEcsServiceEmulator, at as resolveHostDefaultCredentials, b as StudioRunRequest, ba as awsEmulatorRealServices, bi as ImageResolutionContext, bn as normalizeKvsFileKeys, br as EcsTaskResolutionError, bt as isRealAwsSentinel, c as resolveServeBaseUrl, ci as AssetManifest, cn as resolveMicrovmImageTarget, cr as isApplicationLoadBalancer, ct as takeAwsEmulatorStateSourceHint, d as StudioServeRequest, di as EnvOverrideFile, dn as addStartWebFunctionSpecificOptions, dr as SOFT_RELOAD_COMPLETION_LOG_SUFFIX, dt as LEGACY_AWS_EMULATOR_SENTINEL, ei as buildStsClientConfig, en as MicrovmHookName, er as ecsClusterOption, et as parseAwsEndpoint, f as StudioServeState, fi as readEnvVarsFileText, fr as setShadowReadyTimeoutMs, ft as MIXED_MODE_RESIGN_PORT, g as StudioProxyConfig, ga as AwsEmulatorWorkload, gi as BridgeAgentCoreWsOptions, gt as createMixedModeStateProvider, h as RunningStudioProxy, ha as AwsEmulatorServiceRouting, hi as AgentCoreWsResult, hr as TargetListing, ht as RealAwsException, i as coerceRunRequest, in as ResolvedMicrovmImage, ir as resolveSharedSidecarCredentials, it as resolveAwsEmulatorOption, j as DEFAULT_AWS_EMULATOR_URL, ji as ResolvedArnLambdaLayer, jn as addStartServiceSpecificOptions, jr as JwtAuthorizer, jt as deployAccountStsClientConfig, k as AwsEmulatorSidecarWiring, ka as setAwsEmulatorServiceRouting, ki as addInvokeSpecificOptions, kn as resolveAlbTarget, kr as AuthorizerInfo, kt as SECOND_ASSUME_MESSAGE, l as StudioServeManager, li as DockerImageAssetSource, ln as s3KeyOfUri, lr as resolveAlbFrontDoor, lt as writeCaBundleFile, m as createStudioServeManager, ma as TemplateResource, mi as AgentCoreWsBridgeHandle, mn as addStartAgentCoreSpecificOptions, mr as TargetEntry, mt as REAL_AWS_SENTINEL, n as StudioServeRequestPayload, ni as addAwsEndpointOptions, nn as MicrovmResolutionError, nr as parseRestartPolicy, nt as readEmulatorRunFiles, o as coerceStopRequest, on as readMicrovmImageConfig, or as FrontDoorForwardTarget, ot as resolveWorkloadAwsWiring, p as StudioStopRequest, pa as CloudFormationTemplate, pi as resolveEnvVars, pr as ResolvedEcsService, pt as MixedModeStateProviderOptions, q as effectiveLoopbackPorts, qi as groupWorkloadsRoutedApart, qn as PlannedLambdaForwardTarget, qr as IntegrationResponseEntry, qt as microvmFidelityWarnings, r as addStudioSpecificOptions, ri as awsEndpointOptions, rn as MicrovmRuntimeHook, rr as resolveEcsAssumeRoleOption, rt as readProfileEndpointSettings, si as AssetManifestLoader, sn as resolveMicrovmCodeArtifact, sr as ResolvedListenerAction, st as setActiveWorkloadAwsWiring, ti as resolveProfileCredentials, tn as MicrovmImageConfig, tr as parseMaxTasks, tt as probeAwsEmulatorHealth, u as StudioServeManagerConfig, ui as FileAsset, ur as DEFAULT_SHADOW_READY_TIMEOUT_MS, ut as AwsEmulatorEnvVarsScan, v as StudioDispatchConfig, va as AwsProxyClientConfig, vi as bridgeAgentCoreWs, vn as addStartCloudFrontSpecificOptions, vr as CdkLocalError, vt as findRealAwsExceptions, w as StudioInvocationEvent, wa as getAwsEmulatorServiceRouting, wi as tryResolveImageFnJoin, wr as WatchPredicates, wt as realAwsServicesForWorkload, x as StudioRunResult, xa as awsEndpointOverrideClientConfig, xi as derivePseudoParametersFromRegion, xn as parseKvsFileOverrides, xr as assertEcsTaskImagesResolvable, xt as legacyAwsEmulatorSentinelMessage, y as StudioDispatcher, ya as awsClientConfigForService, yi as invokeAgentCoreWs, yr as LocalInvokeBuildError, yt as isLegacyAwsEmulatorSentinel, z as WorkloadAwsWiring, zn as FrontDoorPlan, zr as discoverWebSocketApis, zt as addListSpecificOptions } from "./local-studio-B42CkNWX.js";
2
2
  import { IncomingHttpHeaders, IncomingMessage, Server, ServerResponse } from "node:http";
3
3
  import { SecretsManagerClient } from "@aws-sdk/client-secrets-manager";
4
4
  import { SSMClient } from "@aws-sdk/client-ssm";
@@ -6,7 +6,6 @@ import { WebSocket } from "ws";
6
6
  import * as vm from "node:vm";
7
7
  import "@aws-sdk/signature-v4a";
8
8
  import { spawn } from "child_process";
9
- //#region src/local/file-watcher.d.ts
10
9
  interface FileWatcher {
11
10
  close(): Promise<void>;
12
11
  }
@@ -18,9 +17,7 @@ interface FileWatcherOptions {
18
17
  ignored?: (path: string) => boolean;
19
18
  shouldTrigger?: (path: string) => boolean;
20
19
  }
21
- declare function createFileWatcher(options: FileWatcherOptions): FileWatcher;
22
- //#endregion
23
- //#region src/local/source-change-classifier.d.ts
20
+ export declare function createFileWatcher(options: FileWatcherOptions): FileWatcher;
24
21
  interface ReloadAssetContext {
25
22
  oldAssetHash?: string;
26
23
  newAssetHash: string;
@@ -35,14 +32,12 @@ type ReloadVerdict = {
35
32
  reason: string;
36
33
  newAssetSourceDir: string;
37
34
  };
38
- declare function classifySourceChange(changedPaths: readonly string[], ctx: ReloadAssetContext | undefined): ReloadVerdict;
39
- //#endregion
40
- //#region src/local/agentcore-resolver.d.ts
41
- declare const AGENTCORE_RUNTIME_TYPE = "AWS::BedrockAgentCore::Runtime";
42
- declare const AGENTCORE_HTTP_PROTOCOL = "HTTP";
43
- declare const AGENTCORE_MCP_PROTOCOL = "MCP";
44
- declare const AGENTCORE_A2A_PROTOCOL = "A2A";
45
- declare const AGENTCORE_AGUI_PROTOCOL = "AGUI";
35
+ export declare function classifySourceChange(changedPaths: readonly string[], ctx: ReloadAssetContext | undefined): ReloadVerdict;
36
+ export declare const AGENTCORE_RUNTIME_TYPE = "AWS::BedrockAgentCore::Runtime";
37
+ export declare const AGENTCORE_HTTP_PROTOCOL = "HTTP";
38
+ export declare const AGENTCORE_MCP_PROTOCOL = "MCP";
39
+ export declare const AGENTCORE_A2A_PROTOCOL = "A2A";
40
+ export declare const AGENTCORE_AGUI_PROTOCOL = "AGUI";
46
41
  interface ResolvedAgentCoreRuntime {
47
42
  stack: StackInfo;
48
43
  logicalId: string;
@@ -78,14 +73,12 @@ interface AgentCoreCodeArtifact {
78
73
  versionId?: string;
79
74
  };
80
75
  }
81
- declare class AgentCoreResolutionError extends Error {
76
+ export declare class AgentCoreResolutionError extends Error {
82
77
  constructor(message: string);
83
78
  }
84
- declare function resolveAgentCoreTarget(target: string, stacks: StackInfo[], imageContext?: ImageResolutionContext): ResolvedAgentCoreRuntime;
85
- declare function pickAgentCoreCandidateStack(target: string, stacks: StackInfo[]): StackInfo | undefined;
86
- //#endregion
87
- //#region src/local/agentcore-sigv4-sign.d.ts
88
- declare const AGENTCORE_SIGV4_SERVICE = "bedrock-agentcore";
79
+ export declare function resolveAgentCoreTarget(target: string, stacks: StackInfo[], imageContext?: ImageResolutionContext): ResolvedAgentCoreRuntime;
80
+ export declare function pickAgentCoreCandidateStack(target: string, stacks: StackInfo[]): StackInfo | undefined;
81
+ export declare const AGENTCORE_SIGV4_SERVICE = "bedrock-agentcore";
89
82
  interface SigV4Credentials {
90
83
  accessKeyId: string;
91
84
  secretAccessKey: string;
@@ -108,18 +101,16 @@ interface SignedAgentCoreHeaders {
108
101
  amzContentSha256: string;
109
102
  amzSecurityToken?: string;
110
103
  }
111
- declare function signAgentCoreInvocation(opts: SignAgentCoreInvocationOptions): Promise<SignedAgentCoreHeaders>;
112
- //#endregion
113
- //#region src/local/agentcore-client.d.ts
114
- declare const AGENTCORE_SESSION_ID_HEADER = "X-Amzn-Bedrock-AgentCore-Runtime-Session-Id";
104
+ export declare function signAgentCoreInvocation(opts: SignAgentCoreInvocationOptions): Promise<SignedAgentCoreHeaders>;
105
+ export declare const AGENTCORE_SESSION_ID_HEADER = "X-Amzn-Bedrock-AgentCore-Runtime-Session-Id";
115
106
  interface AgentCoreInvokeResult {
116
107
  status: number;
117
108
  contentType: string | null;
118
109
  raw: string;
119
110
  streamed: boolean;
120
111
  }
121
- declare function waitForAgentCorePing(host: string, port: number, timeoutMs?: number): Promise<void>;
122
- declare function waitForAgentCoreHttpReady(host: string, port: number, path: string, timeoutMs?: number): Promise<void>;
112
+ export declare function waitForAgentCorePing(host: string, port: number, timeoutMs?: number): Promise<void>;
113
+ export declare function waitForAgentCoreHttpReady(host: string, port: number, path: string, timeoutMs?: number): Promise<void>;
123
114
  interface InvokeAgentCoreOptions {
124
115
  sessionId: string;
125
116
  timeoutMs: number;
@@ -127,12 +118,10 @@ interface InvokeAgentCoreOptions {
127
118
  additionalHeaders?: Record<string, string>;
128
119
  onChunk?: (text: string) => void;
129
120
  }
130
- declare function invokeAgentCore(host: string, port: number, event: unknown, options: InvokeAgentCoreOptions): Promise<AgentCoreInvokeResult>;
131
- //#endregion
132
- //#region src/local/agentcore-mcp-client.d.ts
133
- declare const MCP_CONTAINER_PORT = 8000;
134
- declare const MCP_PATH = "/mcp";
135
- declare const MCP_PROTOCOL_VERSION = "2025-06-18";
121
+ export declare function invokeAgentCore(host: string, port: number, event: unknown, options: InvokeAgentCoreOptions): Promise<AgentCoreInvokeResult>;
122
+ export declare const MCP_CONTAINER_PORT = 8000;
123
+ export declare const MCP_PATH = "/mcp";
124
+ export declare const MCP_PROTOCOL_VERSION = "2025-06-18";
136
125
  interface McpJsonRpcRequest {
137
126
  method: string;
138
127
  params?: unknown;
@@ -146,12 +135,10 @@ interface McpInvokeOptions {
146
135
  requestTimeoutMs?: number;
147
136
  fetchImpl?: typeof fetch;
148
137
  }
149
- declare function mcpInvokeOnce(host: string, port: number, request: McpJsonRpcRequest, options?: McpInvokeOptions): Promise<McpInvokeResult>;
150
- declare function parseSseForJsonRpc(text: string, id: number): unknown;
151
- //#endregion
152
- //#region src/local/agentcore-a2a-client.d.ts
153
- declare const A2A_CONTAINER_PORT = 9000;
154
- declare const A2A_PATH = "/";
138
+ export declare function mcpInvokeOnce(host: string, port: number, request: McpJsonRpcRequest, options?: McpInvokeOptions): Promise<McpInvokeResult>;
139
+ export declare function parseSseForJsonRpc(text: string, id: number): unknown;
140
+ export declare const A2A_CONTAINER_PORT = 9000;
141
+ export declare const A2A_PATH = "/";
155
142
  interface A2aJsonRpcRequest {
156
143
  method: string;
157
144
  params?: unknown;
@@ -165,9 +152,7 @@ interface A2aInvokeOptions {
165
152
  requestTimeoutMs?: number;
166
153
  fetchImpl?: typeof fetch;
167
154
  }
168
- declare function a2aInvokeOnce(host: string, port: number, request: A2aJsonRpcRequest, options?: A2aInvokeOptions): Promise<A2aInvokeResult>;
169
- //#endregion
170
- //#region src/local/container-pool.d.ts
155
+ export declare function a2aInvokeOnce(host: string, port: number, request: A2aJsonRpcRequest, options?: A2aInvokeOptions): Promise<A2aInvokeResult>;
171
156
  interface ContainerHandle {
172
157
  logicalId: string;
173
158
  containerId: string;
@@ -181,13 +166,9 @@ interface ContainerPool {
181
166
  release(handle: ContainerHandle): void;
182
167
  dispose(): Promise<void>;
183
168
  }
184
- //#endregion
185
- //#region src/local/vtl-engine.d.ts
186
- declare class VtlEvaluationError extends Error {
169
+ export declare class VtlEvaluationError extends Error {
187
170
  constructor(message: string);
188
171
  }
189
- //#endregion
190
- //#region src/local/cors-handler.d.ts
191
172
  interface CorsConfig {
192
173
  AllowOrigins: string[];
193
174
  AllowMethods: string[];
@@ -196,20 +177,18 @@ interface CorsConfig {
196
177
  MaxAge?: number;
197
178
  AllowCredentials?: boolean;
198
179
  }
199
- declare function buildCorsConfigByApiId(template: CloudFormationTemplate): Map<string, CorsConfig>;
200
- declare function buildCorsConfigFromCloudFrontChain(template: CloudFormationTemplate): Map<string, CorsConfig>;
201
- declare function isFunctionUrlOacFronted(template: CloudFormationTemplate, fnUrlLogicalId: string): boolean;
180
+ export declare function buildCorsConfigByApiId(template: CloudFormationTemplate): Map<string, CorsConfig>;
181
+ export declare function buildCorsConfigFromCloudFrontChain(template: CloudFormationTemplate): Map<string, CorsConfig>;
182
+ export declare function isFunctionUrlOacFronted(template: CloudFormationTemplate, fnUrlLogicalId: string): boolean;
202
183
  interface PreflightResponse {
203
184
  statusCode: number;
204
185
  headers: Record<string, string>;
205
186
  }
206
- declare function matchPreflight(req: {
187
+ export declare function matchPreflight(req: {
207
188
  method: string;
208
189
  headers: Record<string, string[]>;
209
190
  }, config: CorsConfig): PreflightResponse | null;
210
- declare function applyCorsResponseHeaders(res: ServerResponse, apiLogicalId: string | undefined, corsConfigByApiId: Map<string, CorsConfig>, requestOrigin: string | undefined): void;
211
- //#endregion
212
- //#region src/local/authorizer-cache.d.ts
191
+ export declare function applyCorsResponseHeaders(res: ServerResponse, apiLogicalId: string | undefined, corsConfigByApiId: Map<string, CorsConfig>, requestOrigin: string | undefined): void;
213
192
  interface CachedAuthorizerResult {
214
193
  allow: boolean;
215
194
  principalId?: string;
@@ -222,11 +201,9 @@ interface AuthorizerCache {
222
201
  clear(): void;
223
202
  size(): number;
224
203
  }
225
- declare function createAuthorizerCache(opts?: {
204
+ export declare function createAuthorizerCache(opts?: {
226
205
  now?: () => number;
227
206
  }): AuthorizerCache;
228
- //#endregion
229
- //#region src/local/cognito-jwt.d.ts
230
207
  interface JwksKey {
231
208
  kid: string;
232
209
  n: string;
@@ -246,7 +223,7 @@ interface JwksCache {
246
223
  clear(): void;
247
224
  }
248
225
  type WarnedAt = Map<string, number>;
249
- declare function createJwksCache(opts?: {
226
+ export declare function createJwksCache(opts?: {
250
227
  fetchImpl?: (url: string) => Promise<{
251
228
  ok: boolean;
252
229
  status: number;
@@ -256,16 +233,16 @@ declare function createJwksCache(opts?: {
256
233
  ttlMs?: number;
257
234
  failureTtlMs?: number;
258
235
  }): JwksCache;
259
- declare function buildCognitoJwksUrl(region: string, userPoolId: string): string;
260
- declare function buildJwksUrlFromIssuer(issuer: string): string;
261
- declare function verifyCognitoJwt(authorizer: CognitoUserPoolAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
236
+ export declare function buildCognitoJwksUrl(region: string, userPoolId: string): string;
237
+ export declare function buildJwksUrlFromIssuer(issuer: string): string;
238
+ export declare function verifyCognitoJwt(authorizer: CognitoUserPoolAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
262
239
  now?: () => number;
263
240
  warnedAt?: WarnedAt;
264
241
  }): Promise<CachedAuthorizerResult & {
265
242
  identityHash: string | undefined;
266
243
  ttlSeconds: number;
267
244
  }>;
268
- declare function verifyJwtAuthorizer(authorizer: JwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
245
+ export declare function verifyJwtAuthorizer(authorizer: JwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
269
246
  now?: () => number;
270
247
  warnedAt?: WarnedAt;
271
248
  }): Promise<CachedAuthorizerResult & {
@@ -285,7 +262,7 @@ interface JwtCustomClaim {
285
262
  operator: 'EQUALS' | 'CONTAINS' | 'CONTAINS_ANY';
286
263
  value: string | string[];
287
264
  }
288
- declare function verifyJwtViaDiscovery(authorizer: DiscoveryJwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
265
+ export declare function verifyJwtViaDiscovery(authorizer: DiscoveryJwtAuthorizer, authorizationHeader: string | undefined, jwksCache: JwksCache, opts?: {
289
266
  now?: () => number;
290
267
  warnedAt?: WarnedAt;
291
268
  fetchImpl?: (url: string) => Promise<{
@@ -297,17 +274,13 @@ declare function verifyJwtViaDiscovery(authorizer: DiscoveryJwtAuthorizer, autho
297
274
  identityHash: string | undefined;
298
275
  ttlSeconds: number;
299
276
  }>;
300
- //#endregion
301
- //#region src/local/sigv4-verify.d.ts
302
277
  interface ResolvedCredentials {
303
278
  accessKeyId: string;
304
279
  secretAccessKey: string;
305
280
  sessionToken?: string | undefined;
306
281
  }
307
282
  type CredentialsLoader = () => Promise<ResolvedCredentials>;
308
- declare function defaultCredentialsLoader(): CredentialsLoader;
309
- //#endregion
310
- //#region src/local/http-server.d.ts
283
+ export declare function defaultCredentialsLoader(): CredentialsLoader;
311
284
  interface ServerState {
312
285
  routes: readonly RouteWithAuth[];
313
286
  pool: ContainerPool;
@@ -342,15 +315,13 @@ interface StartedApiServer {
342
315
  setServerState: (next: ServerState) => ServerState;
343
316
  getServerState: () => ServerState;
344
317
  }
345
- declare function startApiServer(opts: StartApiServerOptions): Promise<StartedApiServer>;
346
- declare function readMtlsMaterialsFromDisk(opts: {
318
+ export declare function startApiServer(opts: StartApiServerOptions): Promise<StartedApiServer>;
319
+ export declare function readMtlsMaterialsFromDisk(opts: {
347
320
  truststorePath: string;
348
321
  certPath: string;
349
322
  keyPath: string;
350
323
  }): MtlsServerConfig;
351
- //#endregion
352
- //#region src/local/loopback-forwarder.d.ts
353
- declare const LOOPBACK_FORWARDER_IMAGE = "public.ecr.aws/docker/library/node:22-alpine@sha256:1314fb30ec37592d5845e5a160d522c0e680972aa534549940b8d73bde88481a";
324
+ export declare const LOOPBACK_FORWARDER_IMAGE = "public.ecr.aws/docker/library/node:22-alpine@sha256:1314fb30ec37592d5845e5a160d522c0e680972aa534549940b8d73bde88481a";
354
325
  interface LoopbackForwarderResult {
355
326
  name: string;
356
327
  ok: boolean;
@@ -368,7 +339,7 @@ interface StartLoopbackForwarderOptions {
368
339
  skipPull?: boolean;
369
340
  resignConfigHostPath?: string;
370
341
  }
371
- declare function buildLoopbackForwarderDockerArgs(opts: Pick<StartLoopbackForwarderOptions, 'workloadContainer' | 'ports' | 'probe' | 'caHostPath' | 'skipPull' | 'resignConfigHostPath'> & {
342
+ export declare function buildLoopbackForwarderDockerArgs(opts: Pick<StartLoopbackForwarderOptions, 'workloadContainer' | 'ports' | 'probe' | 'caHostPath' | 'skipPull' | 'resignConfigHostPath'> & {
372
343
  name: string;
373
344
  }): string[];
374
345
  interface LoopbackForwarderNamespace {
@@ -387,13 +358,11 @@ interface NamespaceOwnerForwarderOptions {
387
358
  skipPull?: boolean;
388
359
  resignConfigHostPath?: string;
389
360
  }
390
- declare function buildNamespaceOwnerForwarderDockerArgs(opts: NamespaceOwnerForwarderOptions): string[];
391
- declare function ensureForwarderImage(skipPull?: boolean): Promise<void>;
392
- declare function startLoopbackForwarder(opts: StartLoopbackForwarderOptions): Promise<LoopbackForwarderResult>;
393
- declare function awaitLoopbackForwarderStatus(name: string, timeoutMs?: number): Promise<LoopbackForwarderResult>;
394
- declare function describeForwarderFailure(result: LoopbackForwarderResult, endpointLabel: string): string;
395
- //#endregion
396
- //#region src/local/cloud-map-registry.d.ts
361
+ export declare function buildNamespaceOwnerForwarderDockerArgs(opts: NamespaceOwnerForwarderOptions): string[];
362
+ export declare function ensureForwarderImage(skipPull?: boolean): Promise<void>;
363
+ export declare function startLoopbackForwarder(opts: StartLoopbackForwarderOptions): Promise<LoopbackForwarderResult>;
364
+ export declare function awaitLoopbackForwarderStatus(name: string, timeoutMs?: number): Promise<LoopbackForwarderResult>;
365
+ export declare function describeForwarderFailure(result: LoopbackForwarderResult, endpointLabel: string): string;
397
366
  interface RegisteredEndpoint {
398
367
  ip: string;
399
368
  port: number;
@@ -409,7 +378,7 @@ interface RegistryListing {
409
378
  endpoints: ReadonlyArray<RegisteredEndpoint>;
410
379
  isAlias: boolean;
411
380
  }
412
- declare class CloudMapRegistry {
381
+ export declare class CloudMapRegistry {
413
382
  private readonly byFqdn;
414
383
  private readonly aliasIndex;
415
384
  register(namespace: string, discoveryName: string, endpoint: RegisteredEndpoint): RegistrationHandle;
@@ -422,8 +391,6 @@ declare class CloudMapRegistry {
422
391
  list(): ReadonlyArray<RegistryListing>;
423
392
  isEmpty(): boolean;
424
393
  }
425
- //#endregion
426
- //#region src/local/cloud-map-resolver.d.ts
427
394
  interface ResolvedCloudMapNamespace {
428
395
  logicalId: string;
429
396
  name: string;
@@ -444,9 +411,7 @@ interface CloudMapIndex {
444
411
  servicesByLogicalId: Map<string, ResolvedCloudMapService>;
445
412
  warnings: string[];
446
413
  }
447
- declare function buildCloudMapIndex(stack: StackInfo): CloudMapIndex;
448
- //#endregion
449
- //#region src/local/image-override-engine.d.ts
414
+ export declare function buildCloudMapIndex(stack: StackInfo): CloudMapIndex;
450
415
  interface ImageOverrideEntry {
451
416
  dockerfile: string;
452
417
  contextDir: string;
@@ -455,7 +420,7 @@ interface ImageOverrideEntry {
455
420
  targetStage?: string;
456
421
  }
457
422
  type ImageOverrideMap = Map<string, ImageOverrideEntry>;
458
- declare class ImageOverrideError extends CdkLocalError {
423
+ export declare class ImageOverrideError extends CdkLocalError {
459
424
  constructor(message: string, cause?: Error);
460
425
  }
461
426
  interface ImageOverrideGlobals {
@@ -476,15 +441,15 @@ interface RawImageOverrideFlags {
476
441
  globals: ImageOverrideGlobals;
477
442
  perService: Map<string, PerServiceBuildInputs>;
478
443
  }
479
- declare function parseImageOverrideFlags(input: {
444
+ export declare function parseImageOverrideFlags(input: {
480
445
  imageOverride?: string[];
481
446
  imageBuildArg?: string[];
482
447
  imageBuildSecret?: string[];
483
448
  imageTarget?: string | string[];
484
449
  imageContext?: string | string[];
485
450
  }): RawImageOverrideFlags;
486
- declare function canonicalizeImageOverrideKeys(rawFlags: RawImageOverrideFlags, pinnedAliases: ReadonlyMap<string, ReadonlyArray<string>>, knownTargets?: Iterable<string>): RawImageOverrideFlags;
487
- declare function resolveImageOverrides(args: {
451
+ export declare function canonicalizeImageOverrideKeys(rawFlags: RawImageOverrideFlags, pinnedAliases: ReadonlyMap<string, ReadonlyArray<string>>, knownTargets?: Iterable<string>): RawImageOverrideFlags;
452
+ export declare function resolveImageOverrides(args: {
488
453
  rawFlags: RawImageOverrideFlags;
489
454
  pinnedTargets: ReadonlyArray<string>;
490
455
  pinnedLabels?: ReadonlyMap<string, string>;
@@ -492,17 +457,15 @@ declare function resolveImageOverrides(args: {
492
457
  noInteractive?: boolean;
493
458
  cwd?: string;
494
459
  }): Promise<ImageOverrideMap>;
495
- declare function mergeForService(serviceTarget: string, globals: ImageOverrideGlobals, perService: ReadonlyMap<string, PerServiceBuildInputs>): {
460
+ export declare function mergeForService(serviceTarget: string, globals: ImageOverrideGlobals, perService: ReadonlyMap<string, PerServiceBuildInputs>): {
496
461
  buildArgs: Map<string, string>;
497
462
  buildSecrets: Map<string, string>;
498
463
  targetStage?: string;
499
464
  contextDir?: string;
500
465
  };
501
- declare function buildImageOverrideTag(serviceTarget: string, entry: ImageOverrideEntry): string;
502
- declare function runImageOverrideBuilds(overrides: ImageOverrideMap): Promise<Map<string, string>>;
503
- declare function enforceImageOverrideOrphans(rawFlags: RawImageOverrideFlags, resolvedOverrides: ImageOverrideMap): void;
504
- //#endregion
505
- //#region src/local/cloudfront-kvs.d.ts
466
+ export declare function buildImageOverrideTag(serviceTarget: string, entry: ImageOverrideEntry): string;
467
+ export declare function runImageOverrideBuilds(overrides: ImageOverrideMap): Promise<Map<string, string>>;
468
+ export declare function enforceImageOverrideOrphans(rawFlags: RawImageOverrideFlags, resolvedOverrides: ImageOverrideMap): void;
506
469
  interface KvsDataSource {
507
470
  readonly label: string;
508
471
  readonly kvsId?: string;
@@ -519,14 +482,12 @@ interface CloudFrontKvsHandle {
519
482
  interface CloudFrontModule {
520
483
  kvs(kvsId?: string): CloudFrontKvsHandle;
521
484
  }
522
- declare function createCloudFrontModule(sources: readonly KvsDataSource[]): CloudFrontModule;
523
- declare function createUnboundCloudFrontModule(functionLogicalId: string): CloudFrontModule;
524
- declare function createLocalFileKvsDataSource(args: {
485
+ export declare function createCloudFrontModule(sources: readonly KvsDataSource[]): CloudFrontModule;
486
+ export declare function createUnboundCloudFrontModule(functionLogicalId: string): CloudFrontModule;
487
+ export declare function createLocalFileKvsDataSource(args: {
525
488
  id: string;
526
489
  filePath: string;
527
490
  }): KvsDataSource;
528
- //#endregion
529
- //#region src/local/cloudfront-function-runtime.d.ts
530
491
  interface CfValue {
531
492
  value: string;
532
493
  multiValue?: Array<{
@@ -578,11 +539,11 @@ interface CompiledCloudFrontFunction {
578
539
  kvsAssociations?: CloudFrontKvsAssociation[];
579
540
  cloudfrontModule?: CloudFrontModule;
580
541
  }
581
- declare function stripCloudFrontImport(code: string): {
542
+ export declare function stripCloudFrontImport(code: string): {
582
543
  code: string;
583
544
  bindingName?: string;
584
545
  };
585
- declare function compileCloudFrontFunction(logicalId: string, code: string, runtime: string): CompiledCloudFrontFunction;
546
+ export declare function compileCloudFrontFunction(logicalId: string, code: string, runtime: string): CompiledCloudFrontFunction;
586
547
  type ViewerRequestOutcome = {
587
548
  kind: 'continue';
588
549
  request: CfRequest;
@@ -590,10 +551,8 @@ type ViewerRequestOutcome = {
590
551
  kind: 'response';
591
552
  response: CfResponse;
592
553
  };
593
- declare function runViewerRequest(fn: CompiledCloudFrontFunction, event: CfViewerRequestEvent): Promise<ViewerRequestOutcome>;
594
- declare function runViewerResponse(fn: CompiledCloudFrontFunction, event: CfViewerResponseEvent): Promise<CfResponse>;
595
- //#endregion
596
- //#region src/local/cloudfront-static-origin.d.ts
554
+ export declare function runViewerRequest(fn: CompiledCloudFrontFunction, event: CfViewerRequestEvent): Promise<ViewerRequestOutcome>;
555
+ export declare function runViewerResponse(fn: CompiledCloudFrontFunction, event: CfViewerResponseEvent): Promise<CfResponse>;
597
556
  interface ResolvedCustomErrorResponse {
598
557
  errorCode: number;
599
558
  responsePagePath?: string;
@@ -604,7 +563,7 @@ interface StaticOriginResult {
604
563
  headers: Record<string, string>;
605
564
  body: Buffer;
606
565
  }
607
- declare function serveFromStaticOrigin(input: {
566
+ export declare function serveFromStaticOrigin(input: {
608
567
  localDirs: readonly string[];
609
568
  containLinks?: boolean;
610
569
  hideDotfilesIn?: readonly string[];
@@ -616,9 +575,7 @@ interface ErrorResponseCandidate {
616
575
  errorKey: string;
617
576
  responseCode: number;
618
577
  }
619
- declare function resolveErrorResponseCandidates(customErrorResponses?: readonly ResolvedCustomErrorResponse[]): ErrorResponseCandidate[];
620
- //#endregion
621
- //#region src/local/response-headers-policy.d.ts
578
+ export declare function resolveErrorResponseCandidates(customErrorResponses?: readonly ResolvedCustomErrorResponse[]): ErrorResponseCandidate[];
622
579
  interface PolicyHeader {
623
580
  name: string;
624
581
  value: string;
@@ -629,8 +586,6 @@ interface ResponseHeadersPolicyHeaders {
629
586
  set: PolicyHeader[];
630
587
  skipped: string[];
631
588
  }
632
- //#endregion
633
- //#region src/local/cloudfront-resolver.d.ts
634
589
  interface ResolvedCloudFrontFunction extends CompiledCloudFrontFunction {}
635
590
  interface ResolvedLambdaEdgeAssoc {
636
591
  functionLogicalId: string;
@@ -691,31 +646,27 @@ interface ResolvedDistribution {
691
646
  origins: Map<string, ResolvedOrigin>;
692
647
  customErrorResponses: ResolvedCustomErrorResponse[];
693
648
  }
694
- declare const CLOUDFRONT_DISTRIBUTION_TYPE = "AWS::CloudFront::Distribution";
695
- declare function resolveCloudFrontDistribution(args: {
649
+ export declare const CLOUDFRONT_DISTRIBUTION_TYPE = "AWS::CloudFront::Distribution";
650
+ export declare function resolveCloudFrontDistribution(args: {
696
651
  stack: StackInfo;
697
652
  logicalId: string;
698
653
  originOverrides?: Map<string, string>;
699
654
  }): ResolvedDistribution;
700
- declare function extractKvsAssociations(functionConfig: Record<string, unknown>): CloudFrontKvsAssociation[];
701
- declare function pickKvsLogicalIdFromArn(value: unknown): string | undefined;
702
- declare function pickLambdaEdgeFunctionLogicalId(value: unknown, template: CloudFormationTemplate): string | undefined;
703
- declare function describeS3OriginDomain(value: unknown): {
655
+ export declare function extractKvsAssociations(functionConfig: Record<string, unknown>): CloudFrontKvsAssociation[];
656
+ export declare function pickKvsLogicalIdFromArn(value: unknown): string | undefined;
657
+ export declare function pickLambdaEdgeFunctionLogicalId(value: unknown, template: CloudFormationTemplate): string | undefined;
658
+ export declare function describeS3OriginDomain(value: unknown): {
704
659
  isS3: boolean;
705
660
  bucketName?: string;
706
661
  };
707
- declare function pickWebFunctionEndpointLogicalIdFromOrigin(value: unknown, template: CloudFormationTemplate): string | undefined;
708
- declare function pickFunctionUrlLogicalIdFromOrigin(value: unknown): string | undefined;
709
- declare function pickTargetFunctionLogicalId(value: unknown): string | undefined;
710
- declare function isCloudFrontDistribution(resource: TemplateResource): boolean;
711
- //#endregion
712
- //#region src/local/cloudfront-web-function-origin.d.ts
662
+ export declare function pickWebFunctionEndpointLogicalIdFromOrigin(value: unknown, template: CloudFormationTemplate): string | undefined;
663
+ export declare function pickFunctionUrlLogicalIdFromOrigin(value: unknown): string | undefined;
664
+ export declare function pickTargetFunctionLogicalId(value: unknown): string | undefined;
665
+ export declare function isCloudFrontDistribution(resource: TemplateResource): boolean;
713
666
  interface WebFunctionOriginTarget {
714
667
  host: string;
715
668
  port: number;
716
669
  }
717
- //#endregion
718
- //#region src/local/cloudfront-s3-origin.d.ts
719
670
  interface S3OriginCredentials {
720
671
  accessKeyId: string;
721
672
  secretAccessKey: string;
@@ -748,16 +699,12 @@ interface S3OriginReader {
748
699
  close(): Promise<void>;
749
700
  clearCache(): void;
750
701
  }
751
- declare function createS3OriginReader(bucketName: string, options?: S3OriginReaderOptions): S3OriginReader;
752
- declare function classifyS3Error(err: unknown): S3FetchResult;
753
- //#endregion
754
- //#region src/local/front-door-tls.d.ts
702
+ export declare function createS3OriginReader(bucketName: string, options?: S3OriginReaderOptions): S3OriginReader;
703
+ export declare function classifyS3Error(err: unknown): S3FetchResult;
755
704
  interface FrontDoorTlsMaterials {
756
705
  certPem: Buffer;
757
706
  keyPem: Buffer;
758
707
  }
759
- //#endregion
760
- //#region src/local/cloudfront-server.d.ts
761
708
  type LambdaUrlInvokerMap = Map<string, (event: Record<string, unknown>) => Promise<unknown>>;
762
709
  interface StartedCloudFrontServer {
763
710
  url: string;
@@ -776,14 +723,12 @@ interface StartCloudFrontServerOptions {
776
723
  s3OriginReaders?: Map<string, S3OriginReader>;
777
724
  webFunctionOrigins?: Map<string, WebFunctionOriginTarget>;
778
725
  }
779
- declare function startCloudFrontServer(options: StartCloudFrontServerOptions): Promise<StartedCloudFrontServer>;
780
- declare function matchBehavior(behaviors: readonly ResolvedBehavior[], uri: string): ResolvedBehavior | undefined;
781
- //#endregion
782
- //#region src/local/web-function-resolver.d.ts
783
- declare const WEB_FUNCTION_TYPE = "AWS::Lambda::WebFunction";
784
- declare const WEB_FUNCTION_REVISION_TYPE = "AWS::Lambda::WebFunctionRevision";
785
- declare const WEB_FUNCTION_ENDPOINT_TYPE = "AWS::Lambda::WebFunctionEndpoint";
786
- declare class WebFunctionResolutionError extends Error {
726
+ export declare function startCloudFrontServer(options: StartCloudFrontServerOptions): Promise<StartedCloudFrontServer>;
727
+ export declare function matchBehavior(behaviors: readonly ResolvedBehavior[], uri: string): ResolvedBehavior | undefined;
728
+ export declare const WEB_FUNCTION_TYPE = "AWS::Lambda::WebFunction";
729
+ export declare const WEB_FUNCTION_REVISION_TYPE = "AWS::Lambda::WebFunctionRevision";
730
+ export declare const WEB_FUNCTION_ENDPOINT_TYPE = "AWS::Lambda::WebFunctionEndpoint";
731
+ export declare class WebFunctionResolutionError extends Error {
787
732
  constructor(message: string);
788
733
  }
789
734
  interface WebFunctionRevisionWeight {
@@ -806,9 +751,7 @@ interface ResolvedWebFunction {
806
751
  endpoint: ResolvedWebFunctionEndpoint | undefined;
807
752
  selection: WebFunctionRevisionSelection;
808
753
  }
809
- declare function resolveWebFunctionTarget(target: string, stacks: StackInfo[], revisionFlag?: string): ResolvedWebFunction;
810
- //#endregion
811
- //#region src/local/web-function-artifact.d.ts
754
+ export declare function resolveWebFunctionTarget(target: string, stacks: StackInfo[], revisionFlag?: string): ResolvedWebFunction;
812
755
  type WebFunctionArtifact = WebFunctionZipArtifact | WebFunctionImageArtifact;
813
756
  interface WebFunctionZipArtifact {
814
757
  kind: 'zip';
@@ -833,11 +776,9 @@ interface WebFunctionCodeConfig {
833
776
  };
834
777
  };
835
778
  }
836
- declare function parseWebFunctionBuildConfig(revisionLogicalId: string, buildConfig: unknown, template?: CloudFormationTemplate): WebFunctionCodeConfig;
837
- declare function resolveWebFunctionArtifact(stack: StackInfo, revisionLogicalId: string, code: WebFunctionCodeConfig, loader?: AssetManifestLoader): Promise<WebFunctionArtifact>;
838
- declare function disposeWebFunctionArtifact(artifact: WebFunctionArtifact | undefined): void;
839
- //#endregion
840
- //#region src/local/web-function-runtime.d.ts
779
+ export declare function parseWebFunctionBuildConfig(revisionLogicalId: string, buildConfig: unknown, template?: CloudFormationTemplate): WebFunctionCodeConfig;
780
+ export declare function resolveWebFunctionArtifact(stack: StackInfo, revisionLogicalId: string, code: WebFunctionCodeConfig, loader?: AssetManifestLoader): Promise<WebFunctionArtifact>;
781
+ export declare function disposeWebFunctionArtifact(artifact: WebFunctionArtifact | undefined): void;
841
782
  interface WebFunctionRuntimeSpec {
842
783
  runtime: string;
843
784
  baseImage: string;
@@ -852,14 +793,12 @@ interface WebFunctionStartCommand {
852
793
  cmd: string[];
853
794
  label: string;
854
795
  }
855
- declare function buildNodeEntryFileStart(runtime: string, env: Readonly<Record<string, string>>, codeDir: string, fileExists?: (path: string) => boolean): WebFunctionStartCommand;
856
- declare const WEB_FUNCTION_RUNTIMES: Readonly<Record<string, WebFunctionRuntimeSpec>>;
857
- declare function supportedWebFunctionRuntimes(table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): string[];
858
- declare function resolveWebFunctionRuntime(runtime: string, table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): WebFunctionRuntimeSpec;
859
- declare function defaultWebFunctionPlatform(spec: WebFunctionRuntimeSpec): string;
860
- //#endregion
861
- //#region src/local/web-function-service-config.d.ts
862
- declare const WEB_FUNCTION_HTTP_ENDPOINT_ENV = "AWS_LAMBDA_HTTP_ENDPOINT";
796
+ export declare function buildNodeEntryFileStart(runtime: string, env: Readonly<Record<string, string>>, codeDir: string, fileExists?: (path: string) => boolean): WebFunctionStartCommand;
797
+ export declare const WEB_FUNCTION_RUNTIMES: Readonly<Record<string, WebFunctionRuntimeSpec>>;
798
+ export declare function supportedWebFunctionRuntimes(table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): string[];
799
+ export declare function resolveWebFunctionRuntime(runtime: string, table?: Readonly<Record<string, WebFunctionRuntimeSpec>>): WebFunctionRuntimeSpec;
800
+ export declare function defaultWebFunctionPlatform(spec: WebFunctionRuntimeSpec): string;
801
+ export declare const WEB_FUNCTION_HTTP_ENDPOINT_ENV = "AWS_LAMBDA_HTTP_ENDPOINT";
863
802
  interface WebFunctionServiceConfig {
864
803
  environmentVariables: Record<string, unknown> | undefined;
865
804
  environmentUnreadable: boolean;
@@ -868,10 +807,10 @@ interface WebFunctionServiceConfig {
868
807
  timeoutSeconds: number | undefined;
869
808
  logGroup: string | undefined;
870
809
  }
871
- declare function readWebFunctionServiceConfig(revision: ResolvedWebFunction['revision']): WebFunctionServiceConfig;
872
- declare function buildWebFunctionLambdaView(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig, runtime: string): ResolvedZipLambda;
873
- declare function webFunctionAssumeRole(assumeRole: string | boolean | undefined, config: WebFunctionServiceConfig): string | boolean | undefined;
874
- declare function finalizeWebFunctionEnv(lambdaEnv: Readonly<Record<string, string>>, opts: {
810
+ export declare function readWebFunctionServiceConfig(revision: ResolvedWebFunction['revision']): WebFunctionServiceConfig;
811
+ export declare function buildWebFunctionLambdaView(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig, runtime: string): ResolvedZipLambda;
812
+ export declare function webFunctionAssumeRole(assumeRole: string | boolean | undefined, config: WebFunctionServiceConfig): string | boolean | undefined;
813
+ export declare function finalizeWebFunctionEnv(lambdaEnv: Readonly<Record<string, string>>, opts: {
875
814
  functionName: string;
876
815
  containerPort: number;
877
816
  timeoutSeconds: number | undefined;
@@ -880,9 +819,7 @@ declare function finalizeWebFunctionEnv(lambdaEnv: Readonly<Record<string, strin
880
819
  env: Record<string, string>;
881
820
  replacedHttpEndpoint: boolean;
882
821
  };
883
- declare function webFunctionFidelityWarnings(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig): string[];
884
- //#endregion
885
- //#region src/local/agentcore-serve-auth.d.ts
822
+ export declare function webFunctionFidelityWarnings(resolved: ResolvedWebFunction, config: WebFunctionServiceConfig): string[];
886
823
  interface AgentCoreServeAuthResult {
887
824
  allow: boolean;
888
825
  status?: number;
@@ -896,18 +833,16 @@ interface BuildAgentCoreServeAuthCheckOptions {
896
833
  jwksCache?: JwksCache;
897
834
  warnedAt?: WarnedAt;
898
835
  }
899
- declare function buildAgentCoreServeAuthCheck(authorizer: AgentCoreJwtAuthorizer, opts?: BuildAgentCoreServeAuthCheckOptions): AgentCoreServeAuthCheck;
836
+ export declare function buildAgentCoreServeAuthCheck(authorizer: AgentCoreJwtAuthorizer, opts?: BuildAgentCoreServeAuthCheckOptions): AgentCoreServeAuthCheck;
900
837
  interface ServeInboundAuthPlan {
901
838
  authCheck?: AgentCoreServeAuthCheck;
902
839
  bridgeAuthorization?: string;
903
840
  sign: boolean;
904
841
  }
905
- declare function selectServeInboundAuth(resolved: Pick<ResolvedAgentCoreRuntime, 'jwtAuthorizer'>, options: {
842
+ export declare function selectServeInboundAuth(resolved: Pick<ResolvedAgentCoreRuntime, 'jwtAuthorizer'>, options: {
906
843
  bearerToken?: string;
907
844
  verifyAuth?: boolean;
908
845
  }, sigv4Active: boolean, buildAuthCheck?: typeof buildAgentCoreServeAuthCheck): ServeInboundAuthPlan;
909
- //#endregion
910
- //#region src/local/agentcore-http-server.d.ts
911
846
  interface AgentCoreServeRoute {
912
847
  method: string;
913
848
  path: string;
@@ -937,9 +872,7 @@ interface RunningAgentCoreHttpServer {
937
872
  setContainerPort(port: number): void;
938
873
  close(): Promise<void>;
939
874
  }
940
- declare function startAgentCoreHttpServer(config: AgentCoreHttpServerConfig): Promise<RunningAgentCoreHttpServer>;
941
- //#endregion
942
- //#region src/local/studio-store.d.ts
875
+ export declare function startAgentCoreHttpServer(config: AgentCoreHttpServerConfig): Promise<RunningAgentCoreHttpServer>;
943
876
  interface StudioStoreOptions {
944
877
  maxInvocations?: number;
945
878
  maxLogs?: number;
@@ -960,9 +893,7 @@ interface StudioStore {
960
893
  invocation: (id: string) => StudioInvocationEvent | undefined;
961
894
  dispose: () => void;
962
895
  }
963
- declare function createStudioStore(bus: StudioEventBus, options?: StudioStoreOptions): StudioStore;
964
- //#endregion
965
- //#region src/local/studio-server.d.ts
896
+ export declare function createStudioStore(bus: StudioEventBus, options?: StudioStoreOptions): StudioStore;
966
897
  interface StudioTarget {
967
898
  id: string;
968
899
  qualifiedId: string;
@@ -982,14 +913,14 @@ interface StudioTargetGroup {
982
913
  title: string;
983
914
  entries: StudioTarget[];
984
915
  }
985
- declare function toStudioTargetGroups(listing: TargetListing): StudioTargetGroup[];
986
- declare function annotatePinnedEcsTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
987
- declare function annotateEcsTaskPinnedTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
988
- declare function annotateAlbPinnedBackingServices(groups: StudioTargetGroup[], resolveBackingPinned: (albEntry: StudioTarget) => {
916
+ export declare function toStudioTargetGroups(listing: TargetListing): StudioTargetGroup[];
917
+ export declare function annotatePinnedEcsTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
918
+ export declare function annotateEcsTaskPinnedTargets(groups: StudioTargetGroup[], classify: (targetId: string) => boolean): boolean;
919
+ export declare function annotateAlbPinnedBackingServices(groups: StudioTargetGroup[], resolveBackingPinned: (albEntry: StudioTarget) => {
989
920
  id: string;
990
921
  label: string;
991
922
  }[]): boolean;
992
- declare function filterStudioTargetGroups(groups: StudioTargetGroup[], globs: string[] | undefined): StudioTargetGroup[];
923
+ export declare function filterStudioTargetGroups(groups: StudioTargetGroup[], globs: string[] | undefined): StudioTargetGroup[];
993
924
  interface StudioServerOptions {
994
925
  port: number;
995
926
  host?: string;
@@ -1014,9 +945,7 @@ interface RunningStudioServer {
1014
945
  close: () => Promise<void>;
1015
946
  setTargets: (groups: StudioTargetGroup[], dockerfiles?: string[]) => void;
1016
947
  }
1017
- declare function startStudioServer(options: StudioServerOptions): Promise<RunningStudioServer>;
1018
- //#endregion
1019
- //#region src/local/studio-request-relay.d.ts
948
+ export declare function startStudioServer(options: StudioServerOptions): Promise<RunningStudioServer>;
1020
949
  interface ServeRequestInput {
1021
950
  baseUrl: string;
1022
951
  method: string;
@@ -1033,12 +962,8 @@ interface ServeRequestResult {
1033
962
  truncated: boolean;
1034
963
  durationMs: number;
1035
964
  }
1036
- declare function relayServeRequest(input: ServeRequestInput, fetchFn?: typeof fetch, clock?: () => number): Promise<ServeRequestResult>;
1037
- //#endregion
1038
- //#region src/local/intrinsic-utils.d.ts
1039
- declare function pickRefLogicalId(value: unknown): string | null;
1040
- //#endregion
1041
- //#region src/local/intrinsic-lambda-arn.d.ts
965
+ export declare function relayServeRequest(input: ServeRequestInput, fetchFn?: typeof fetch, clock?: () => number): Promise<ServeRequestResult>;
966
+ export declare function pickRefLogicalId(value: unknown): string | null;
1042
967
  type LambdaArnResolveOutcome = {
1043
968
  kind: 'resolved';
1044
969
  logicalId: string;
@@ -1047,9 +972,7 @@ type LambdaArnResolveOutcome = {
1047
972
  kind: 'unsupported';
1048
973
  detail: string;
1049
974
  };
1050
- declare function resolveLambdaArnIntrinsic(value: unknown): LambdaArnResolveOutcome;
1051
- //#endregion
1052
- //#region src/local/parameter-mapping.d.ts
975
+ export declare function resolveLambdaArnIntrinsic(value: unknown): LambdaArnResolveOutcome;
1053
976
  interface RequestParameterContext {
1054
977
  headers: Readonly<Record<string, string>>;
1055
978
  queryString: Readonly<Record<string, string>>;
@@ -1067,29 +990,21 @@ type ResolveParametersOutcome = {
1067
990
  kind: 'error';
1068
991
  reason: string;
1069
992
  };
1070
- declare function resolveServiceIntegrationParameters(parameters: Readonly<Record<string, unknown>>, ctx: RequestParameterContext): ResolveParametersOutcome;
1071
- declare function resolveSelectionExpression(input: string, ctx: RequestParameterContext): string;
1072
- //#endregion
1073
- //#region src/local/api-gateway-response.d.ts
993
+ export declare function resolveServiceIntegrationParameters(parameters: Readonly<Record<string, unknown>>, ctx: RequestParameterContext): ResolveParametersOutcome;
994
+ export declare function resolveSelectionExpression(input: string, ctx: RequestParameterContext): string;
1074
995
  interface TranslatedHttpResponse {
1075
996
  statusCode: number;
1076
997
  headers: Record<string, string>;
1077
998
  cookies: string[];
1078
999
  body: Buffer;
1079
1000
  }
1080
- declare function translateLambdaResponse(payload: unknown, version: 'v1' | 'v2'): TranslatedHttpResponse;
1081
- //#endregion
1082
- //#region src/local/docker-inspect.d.ts
1083
- declare function getContainerNetworkIp(containerId: string, networkName: string): Promise<string | undefined>;
1084
- //#endregion
1085
- //#region src/local/route-matcher.d.ts
1001
+ export declare function translateLambdaResponse(payload: unknown, version: 'v1' | 'v2'): TranslatedHttpResponse;
1002
+ export declare function getContainerNetworkIp(containerId: string, networkName: string): Promise<string | undefined>;
1086
1003
  interface RouteMatchResult {
1087
1004
  route: DiscoveredRoute;
1088
1005
  pathParameters: Record<string, string>;
1089
1006
  }
1090
- declare function matchRoute(method: string, requestPath: string, routes: readonly DiscoveredRoute[]): RouteMatchResult | null;
1091
- //#endregion
1092
- //#region src/local/api-gateway-event.d.ts
1007
+ export declare function matchRoute(method: string, requestPath: string, routes: readonly DiscoveredRoute[]): RouteMatchResult | null;
1093
1008
  interface HttpRequestSnapshot {
1094
1009
  method: string;
1095
1010
  rawUrl: string;
@@ -1103,10 +1018,10 @@ interface MatchedRouteContext {
1103
1018
  pathParameters: Record<string, string>;
1104
1019
  matchedPath: string;
1105
1020
  }
1106
- declare function buildHttpApiV2Event(req: HttpRequestSnapshot, ctx: MatchedRouteContext, opts?: {
1021
+ export declare function buildHttpApiV2Event(req: HttpRequestSnapshot, ctx: MatchedRouteContext, opts?: {
1107
1022
  now?: () => Date;
1108
1023
  }): Record<string, unknown>;
1109
- declare function buildRestV1Event(req: HttpRequestSnapshot, ctx: MatchedRouteContext, opts?: {
1024
+ export declare function buildRestV1Event(req: HttpRequestSnapshot, ctx: MatchedRouteContext, opts?: {
1110
1025
  now?: () => Date;
1111
1026
  }): Record<string, unknown>;
1112
1027
  type AuthorizerEventOverlay = {
@@ -1125,9 +1040,7 @@ type AuthorizerEventOverlay = {
1125
1040
  claims: Record<string, unknown>;
1126
1041
  scopes?: string[];
1127
1042
  };
1128
- declare function applyAuthorizerOverlay(event: Record<string, unknown>, overlay: AuthorizerEventOverlay): Record<string, unknown>;
1129
- //#endregion
1130
- //#region src/local/lambda-authorizer.d.ts
1043
+ export declare function applyAuthorizerOverlay(event: Record<string, unknown>, overlay: AuthorizerEventOverlay): Record<string, unknown>;
1131
1044
  interface RequestSnapshotForAuthorizer {
1132
1045
  method: string;
1133
1046
  headers: Record<string, string>;
@@ -1144,7 +1057,7 @@ interface AuthorizerInvocationContext {
1144
1057
  mockAccountId: string;
1145
1058
  mockApiId: string;
1146
1059
  }
1147
- declare function buildMethodArn(opts: {
1060
+ export declare function buildMethodArn(opts: {
1148
1061
  apiId: string;
1149
1062
  accountId: string;
1150
1063
  region?: string;
@@ -1152,34 +1065,28 @@ declare function buildMethodArn(opts: {
1152
1065
  method: string;
1153
1066
  path: string;
1154
1067
  }): string;
1155
- declare function invokeTokenAuthorizer(authorizer: LambdaTokenAuthorizer, request: RequestSnapshotForAuthorizer, ctx: AuthorizerInvocationContext): Promise<CachedAuthorizerResult & {
1068
+ export declare function invokeTokenAuthorizer(authorizer: LambdaTokenAuthorizer, request: RequestSnapshotForAuthorizer, ctx: AuthorizerInvocationContext): Promise<CachedAuthorizerResult & {
1156
1069
  identityHash: string | undefined;
1157
1070
  }>;
1158
- declare function invokeRequestAuthorizer(authorizer: LambdaRequestAuthorizer, request: RequestSnapshotForAuthorizer, ctx: AuthorizerInvocationContext): Promise<CachedAuthorizerResult & {
1071
+ export declare function invokeRequestAuthorizer(authorizer: LambdaRequestAuthorizer, request: RequestSnapshotForAuthorizer, ctx: AuthorizerInvocationContext): Promise<CachedAuthorizerResult & {
1159
1072
  identityHash: string | undefined;
1160
1073
  }>;
1161
- declare function computeRequestIdentityHash(authorizer: LambdaRequestAuthorizer, request: RequestSnapshotForAuthorizer): {
1074
+ export declare function computeRequestIdentityHash(authorizer: LambdaRequestAuthorizer, request: RequestSnapshotForAuthorizer): {
1162
1075
  identityHash: string;
1163
1076
  missing: boolean;
1164
1077
  };
1165
- declare function evaluateCachedLambdaPolicy(cached: CachedAuthorizerResult, methodArn: string): CachedAuthorizerResult;
1166
- //#endregion
1167
- //#region src/local/stage-resolver.d.ts
1078
+ export declare function evaluateCachedLambdaPolicy(cached: CachedAuthorizerResult, methodArn: string): CachedAuthorizerResult;
1168
1079
  interface ResolvedStage {
1169
1080
  stageLogicalId: string;
1170
1081
  stageName: string;
1171
1082
  apiVersion: 'v1' | 'v2';
1172
1083
  variables: Record<string, string> | null;
1173
1084
  }
1174
- declare function buildStageMap(template: CloudFormationTemplate, stageOverride?: string): Map<string, ResolvedStage>;
1175
- declare function attachStageContext(routes: DiscoveredRoute[], stageMap: Map<string, ResolvedStage>): void;
1176
- //#endregion
1177
- //#region src/local/runtime-image.d.ts
1178
- declare function resolveRuntimeImage(runtime: string): string;
1179
- declare function resolveRuntimeFileExtension(runtime: string): string;
1180
- declare function resolveRuntimeCodeMountPath(runtime: string): string;
1181
- //#endregion
1182
- //#region src/local/websocket-event.d.ts
1085
+ export declare function buildStageMap(template: CloudFormationTemplate, stageOverride?: string): Map<string, ResolvedStage>;
1086
+ export declare function attachStageContext(routes: DiscoveredRoute[], stageMap: Map<string, ResolvedStage>): void;
1087
+ export declare function resolveRuntimeImage(runtime: string): string;
1088
+ export declare function resolveRuntimeFileExtension(runtime: string): string;
1089
+ export declare function resolveRuntimeCodeMountPath(runtime: string): string;
1183
1090
  interface WebSocketHandshakeSnapshot {
1184
1091
  headers: Record<string, string[]>;
1185
1092
  rawQueryString: string;
@@ -1217,13 +1124,13 @@ interface WebSocketLambdaEvent {
1217
1124
  isBase64Encoded: boolean;
1218
1125
  body: string;
1219
1126
  }
1220
- declare function buildConnectEvent(opts: {
1127
+ export declare function buildConnectEvent(opts: {
1221
1128
  connectionId: string;
1222
1129
  connectedAt: number;
1223
1130
  stage: string;
1224
1131
  snapshot: WebSocketHandshakeSnapshot;
1225
1132
  }): WebSocketLambdaEvent;
1226
- declare function buildMessageEvent(opts: {
1133
+ export declare function buildMessageEvent(opts: {
1227
1134
  connectionId: string;
1228
1135
  connectedAt: number;
1229
1136
  stage: string;
@@ -1232,7 +1139,7 @@ declare function buildMessageEvent(opts: {
1232
1139
  body: string;
1233
1140
  isBase64Encoded: boolean;
1234
1141
  }): WebSocketLambdaEvent;
1235
- declare function buildDisconnectEvent(opts: {
1142
+ export declare function buildDisconnectEvent(opts: {
1236
1143
  connectionId: string;
1237
1144
  connectedAt: number;
1238
1145
  stage: string;
@@ -1240,8 +1147,6 @@ declare function buildDisconnectEvent(opts: {
1240
1147
  disconnectStatusCode?: number;
1241
1148
  disconnectReason?: string;
1242
1149
  }): WebSocketLambdaEvent;
1243
- //#endregion
1244
- //#region src/local/websocket-mgmt-api.d.ts
1245
1150
  interface ConnectionRegistryEntry {
1246
1151
  connectionId: string;
1247
1152
  socket: WebSocket;
@@ -1249,7 +1154,7 @@ interface ConnectionRegistryEntry {
1249
1154
  apiLogicalId: string;
1250
1155
  stage: string;
1251
1156
  }
1252
- declare class ConnectionRegistry {
1157
+ export declare class ConnectionRegistry {
1253
1158
  private readonly entries;
1254
1159
  register(entry: ConnectionRegistryEntry): void;
1255
1160
  unregister(connectionId: string): ConnectionRegistryEntry | undefined;
@@ -1258,24 +1163,20 @@ declare class ConnectionRegistry {
1258
1163
  list(): ConnectionRegistryEntry[];
1259
1164
  clear(): void;
1260
1165
  }
1261
- declare function parseConnectionsPath(url: string): {
1166
+ export declare function parseConnectionsPath(url: string): {
1262
1167
  connectionId: string;
1263
1168
  } | null;
1264
- declare function buildMgmtEndpointEnvUrl(host: string, port: number, stage: string): string;
1265
- declare function handleConnectionsRequest(opts: {
1169
+ export declare function buildMgmtEndpointEnvUrl(host: string, port: number, stage: string): string;
1170
+ export declare function handleConnectionsRequest(opts: {
1266
1171
  req: IncomingMessage;
1267
1172
  res: ServerResponse;
1268
1173
  registry: ConnectionRegistry;
1269
1174
  }): Promise<void>;
1270
- //#endregion
1271
- //#region src/local/websocket-body.d.ts
1272
- declare function bufferToBody(raw: Buffer | ArrayBuffer | Buffer[], isBinary: boolean): {
1175
+ export declare function bufferToBody(raw: Buffer | ArrayBuffer | Buffer[], isBinary: boolean): {
1273
1176
  body: string;
1274
1177
  isBase64Encoded: boolean;
1275
1178
  };
1276
- //#endregion
1277
- //#region src/local/docker-version.d.ts
1278
- declare const HOST_GATEWAY_MIN_VERSION: ParsedDockerVersion;
1179
+ export declare const HOST_GATEWAY_MIN_VERSION: ParsedDockerVersion;
1279
1180
  interface ParsedDockerVersion {
1280
1181
  major: number;
1281
1182
  minor: number;
@@ -1286,17 +1187,15 @@ interface HostGatewayProbeResult {
1286
1187
  parsed: ParsedDockerVersion | null;
1287
1188
  supported: boolean;
1288
1189
  }
1289
- declare function probeHostGatewaySupport(): Promise<HostGatewayProbeResult>;
1290
- declare const HOST_DOCKER_INTERNAL_GATEWAY: {
1190
+ export declare function probeHostGatewaySupport(): Promise<HostGatewayProbeResult>;
1191
+ export declare const HOST_DOCKER_INTERNAL_GATEWAY: {
1291
1192
  host: string;
1292
1193
  ip: string;
1293
1194
  };
1294
- declare function resolveHostGatewayExtraHosts(): Promise<{
1195
+ export declare function resolveHostGatewayExtraHosts(): Promise<{
1295
1196
  host: string;
1296
1197
  ip: string;
1297
1198
  }[]>;
1298
- //#endregion
1299
- //#region src/local/api-server-grouping.d.ts
1300
1199
  interface ApiServerGroup {
1301
1200
  readonly serverKey: string;
1302
1201
  readonly displayName: string;
@@ -1304,12 +1203,10 @@ interface ApiServerGroup {
1304
1203
  readonly identifier: string;
1305
1204
  readonly routes: readonly RouteWithAuth[];
1306
1205
  }
1307
- declare function groupRoutesByServer(routes: readonly RouteWithAuth[]): ApiServerGroup[];
1308
- declare function filterRoutesByApiIdentifier(routes: readonly RouteWithAuth[], identifier: string): RouteWithAuth[];
1309
- declare function filterRoutesByApiIdentifiers(routes: readonly RouteWithAuth[], identifiers: readonly string[]): RouteWithAuth[];
1310
- declare function availableApiIdentifiers(routes: readonly RouteWithAuth[]): string[];
1311
- //#endregion
1312
- //#region src/local/layer-arn-materializer.d.ts
1206
+ export declare function groupRoutesByServer(routes: readonly RouteWithAuth[]): ApiServerGroup[];
1207
+ export declare function filterRoutesByApiIdentifier(routes: readonly RouteWithAuth[], identifier: string): RouteWithAuth[];
1208
+ export declare function filterRoutesByApiIdentifiers(routes: readonly RouteWithAuth[], identifiers: readonly string[]): RouteWithAuth[];
1209
+ export declare function availableApiIdentifiers(routes: readonly RouteWithAuth[]): string[];
1313
1210
  interface MaterializeLayerOptions {
1314
1211
  roleArn?: string;
1315
1212
  lambdaClientFactory?: (region: string, credentials?: AwsCredentials) => LambdaSendClient;
@@ -1340,14 +1237,10 @@ interface StsSendClient {
1340
1237
  }>;
1341
1238
  destroy?: () => void;
1342
1239
  }
1343
- declare function materializeLayerFromArn(layer: ResolvedArnLambdaLayer, options?: MaterializeLayerOptions): Promise<string>;
1344
- //#endregion
1345
- //#region src/local/credential-error.d.ts
1346
- declare function describeCredentialLoadFailure(err: unknown): string;
1347
- declare function describeAwsFailureForWarn(err: unknown, operation: string): string;
1348
- //#endregion
1349
- //#region src/local/agentcore-code-build.d.ts
1350
- declare const SUPPORTED_CODE_RUNTIMES: string[];
1240
+ export declare function materializeLayerFromArn(layer: ResolvedArnLambdaLayer, options?: MaterializeLayerOptions): Promise<string>;
1241
+ export declare function describeCredentialLoadFailure(err: unknown): string;
1242
+ export declare function describeAwsFailureForWarn(err: unknown, operation: string): string;
1243
+ export declare const SUPPORTED_CODE_RUNTIMES: string[];
1351
1244
  interface BuildAgentCoreCodeImageOptions {
1352
1245
  sourceDir: string;
1353
1246
  runtime: string;
@@ -1355,12 +1248,10 @@ interface BuildAgentCoreCodeImageOptions {
1355
1248
  architecture: 'x86_64' | 'arm64';
1356
1249
  noBuild?: boolean;
1357
1250
  }
1358
- declare function buildAgentCoreCodeImage(options: BuildAgentCoreCodeImageOptions): Promise<string>;
1359
- declare function renderCodeDockerfile(base: string, entryPoint: string[], isNode: boolean): string;
1360
- declare function toCmdArgv(entryPoint: string[], isNode: boolean): string[];
1361
- declare function computeCodeImageTag(sourceDir: string, runtime: string, entryPoint: string[], dockerfile: string): string;
1362
- //#endregion
1363
- //#region src/local/agentcore-ws-bridge.d.ts
1251
+ export declare function buildAgentCoreCodeImage(options: BuildAgentCoreCodeImageOptions): Promise<string>;
1252
+ export declare function renderCodeDockerfile(base: string, entryPoint: string[], isNode: boolean): string;
1253
+ export declare function toCmdArgv(entryPoint: string[], isNode: boolean): string[];
1254
+ export declare function computeCodeImageTag(sourceDir: string, runtime: string, entryPoint: string[], dockerfile: string): string;
1364
1255
  interface AgentCoreWsBridgeServerConfig {
1365
1256
  containerHost: string;
1366
1257
  containerPort: number | (() => number);
@@ -1380,10 +1271,8 @@ interface AttachedAgentCoreWsBridge {
1380
1271
  path: string;
1381
1272
  close(): Promise<void>;
1382
1273
  }
1383
- declare function attachAgentCoreWsBridge(httpServer: Server, config: Omit<AgentCoreWsBridgeServerConfig, 'host' | 'port'>): AttachedAgentCoreWsBridge;
1384
- declare function startAgentCoreWsBridge(config: AgentCoreWsBridgeServerConfig): Promise<RunningAgentCoreWsBridge>;
1385
- //#endregion
1386
- //#region src/local/agentcore-s3-bundle.d.ts
1274
+ export declare function attachAgentCoreWsBridge(httpServer: Server, config: Omit<AgentCoreWsBridgeServerConfig, 'host' | 'port'>): AttachedAgentCoreWsBridge;
1275
+ export declare function startAgentCoreWsBridge(config: AgentCoreWsBridgeServerConfig): Promise<RunningAgentCoreWsBridge>;
1387
1276
  interface S3BundleLocation {
1388
1277
  bucket: string;
1389
1278
  key: string;
@@ -1405,55 +1294,45 @@ interface ExtractedS3Bundle {
1405
1294
  dir: string;
1406
1295
  cleanup: () => Promise<void>;
1407
1296
  }
1408
- declare function downloadAndExtractS3Bundle(location: S3BundleLocation, options?: DownloadS3BundleOptions): Promise<ExtractedS3Bundle>;
1409
- //#endregion
1410
- //#region src/local/docker-image-builder.d.ts
1297
+ export declare function downloadAndExtractS3Bundle(location: S3BundleLocation, options?: DownloadS3BundleOptions): Promise<ExtractedS3Bundle>;
1411
1298
  interface BuildContainerImageOptions {
1412
1299
  architecture: 'x86_64' | 'arm64';
1413
1300
  noBuild?: boolean;
1414
1301
  assetOutdir?: string;
1415
1302
  workload?: AwsEmulatorWorkload;
1416
1303
  }
1417
- declare function buildContainerImage(asset: {
1304
+ export declare function buildContainerImage(asset: {
1418
1305
  source: DockerImageAssetSource;
1419
1306
  }, cdkOutDir: string, options: BuildContainerImageOptions): Promise<string>;
1420
- declare function architectureToPlatform(architecture: 'x86_64' | 'arm64'): string;
1421
- //#endregion
1422
- //#region src/local/image-pin-detector.d.ts
1423
- declare function isLocalCdkAssetImage(service: ResolvedEcsService): boolean;
1424
- declare function describePinnedImageUri(service: ResolvedEcsService): string | undefined;
1307
+ export declare function architectureToPlatform(architecture: 'x86_64' | 'arm64'): string;
1308
+ export declare function isLocalCdkAssetImage(service: ResolvedEcsService): boolean;
1309
+ export declare function describePinnedImageUri(service: ResolvedEcsService): string | undefined;
1425
1310
  interface PinnedTargetEntry {
1426
1311
  target: string;
1427
1312
  label?: string;
1428
1313
  aliases: string[];
1429
1314
  }
1430
- declare function imageOverrideKeyAliases(service: ResolvedEcsService): string[];
1431
- declare function listPinnedTargets(resolvedServices: Iterable<{
1315
+ export declare function imageOverrideKeyAliases(service: ResolvedEcsService): string[];
1316
+ export declare function listPinnedTargets(resolvedServices: Iterable<{
1432
1317
  target: string;
1433
1318
  service: ResolvedEcsService;
1434
1319
  }>): PinnedTargetEntry[];
1435
- //#endregion
1436
- //#region src/local/target-picker.d.ts
1437
1320
  interface ResolveParams {
1438
1321
  entries: TargetEntry[];
1439
1322
  message: string;
1440
1323
  noun: string;
1441
1324
  onMissing: () => CdkLocalError;
1442
1325
  }
1443
- declare function resolveSingleTarget(provided: string | undefined, params: ResolveParams): Promise<string>;
1444
- //#endregion
1445
- //#region src/local/container-log-streamer.d.ts
1446
- declare function attachContainerLogStreamer(prefix: string, containerId: string, opts?: {
1326
+ export declare function resolveSingleTarget(provided: string | undefined, params: ResolveParams): Promise<string>;
1327
+ export declare function attachContainerLogStreamer(prefix: string, containerId: string, opts?: {
1447
1328
  expectRestart?: () => boolean;
1448
1329
  }): () => void;
1449
- //#endregion
1450
- //#region src/local/s3-object-asset.d.ts
1451
- declare function findFileAssetForObjectKey(manifest: AssetManifest, key: string): {
1330
+ export declare function findFileAssetForObjectKey(manifest: AssetManifest, key: string): {
1452
1331
  hash: string;
1453
1332
  asset: FileAsset;
1454
1333
  } | undefined;
1455
- declare function isBucketDeploymentResource(resource: TemplateResource | undefined): boolean;
1456
- declare function bucketDeploymentSourceObjectKeys(resource: TemplateResource): unknown[];
1334
+ export declare function isBucketDeploymentResource(resource: TemplateResource | undefined): boolean;
1335
+ export declare function bucketDeploymentSourceObjectKeys(resource: TemplateResource): unknown[];
1457
1336
  type BucketDeploymentObjectKeyResolution = {
1458
1337
  kind: 'resolved';
1459
1338
  deploymentLogicalId: string;
@@ -1481,10 +1360,8 @@ type BucketDeploymentObjectKeyResolution = {
1481
1360
  deploymentLogicalId: string;
1482
1361
  index: number;
1483
1362
  };
1484
- declare function resolveBucketDeploymentObjectKey(template: CloudFormationTemplate, value: unknown): BucketDeploymentObjectKeyResolution | undefined;
1485
- //#endregion
1486
- //#region src/local/web-function-runner.d.ts
1487
- declare const WEB_FUNCTION_CONTAINER_PORT = 8080;
1363
+ export declare function resolveBucketDeploymentObjectKey(template: CloudFormationTemplate, value: unknown): BucketDeploymentObjectKeyResolution | undefined;
1364
+ export declare const WEB_FUNCTION_CONTAINER_PORT = 8080;
1488
1365
  interface WebFunctionContainerPlan {
1489
1366
  image: string;
1490
1367
  mounts: {
@@ -1497,7 +1374,7 @@ interface WebFunctionContainerPlan {
1497
1374
  workingDir: string | undefined;
1498
1375
  label: string;
1499
1376
  }
1500
- declare function planWebFunctionContainer(artifact: WebFunctionArtifact, spec: WebFunctionRuntimeSpec, env: Readonly<Record<string, string>>, deps?: {
1377
+ export declare function planWebFunctionContainer(artifact: WebFunctionArtifact, spec: WebFunctionRuntimeSpec, env: Readonly<Record<string, string>>, deps?: {
1501
1378
  fileExists?: (path: string) => boolean;
1502
1379
  }): WebFunctionContainerPlan;
1503
1380
  interface StartWebFunctionContainerOptions {
@@ -1509,8 +1386,8 @@ interface StartWebFunctionContainerOptions {
1509
1386
  platform: string;
1510
1387
  name: string;
1511
1388
  }
1512
- declare function startWebFunctionContainer(opts: StartWebFunctionContainerOptions): Promise<string>;
1513
- declare class RecentOutput {
1389
+ export declare function startWebFunctionContainer(opts: StartWebFunctionContainerOptions): Promise<string>;
1390
+ export declare class RecentOutput {
1514
1391
  private lines;
1515
1392
  private partial;
1516
1393
  private readonly max;
@@ -1527,7 +1404,7 @@ interface WebFunctionReadyDeps {
1527
1404
  sleep: (ms: number) => Promise<void>;
1528
1405
  now: () => number;
1529
1406
  }
1530
- declare function waitForWebFunctionReady(args: {
1407
+ export declare function waitForWebFunctionReady(args: {
1531
1408
  containerId: string;
1532
1409
  host: string;
1533
1410
  port: number;
@@ -1535,16 +1412,14 @@ declare function waitForWebFunctionReady(args: {
1535
1412
  recent: RecentOutput;
1536
1413
  label: string;
1537
1414
  }, deps?: WebFunctionReadyDeps): Promise<void>;
1538
- declare function containerFailure(message: string, containerId: string, recent: RecentOutput, fetchLogs?: WebFunctionReadyDeps['fetchLogs'], code?: 'LOCAL_START_WEB_FUNCTION_NOT_READY' | 'LOCAL_START_WEB_FUNCTION_EXITED'): Promise<CdkLocalError>;
1539
- declare function watchContainerExit(containerId: string): {
1415
+ export declare function containerFailure(message: string, containerId: string, recent: RecentOutput, fetchLogs?: WebFunctionReadyDeps['fetchLogs'], code?: 'LOCAL_START_WEB_FUNCTION_NOT_READY' | 'LOCAL_START_WEB_FUNCTION_EXITED'): Promise<CdkLocalError>;
1416
+ export declare function watchContainerExit(containerId: string): {
1540
1417
  exited: Promise<number | undefined>;
1541
1418
  stop: () => void;
1542
1419
  };
1543
- declare function readContainerLogTail(containerId: string, lines: number, spawnFn?: typeof spawn): Promise<string[]>;
1544
- //#endregion
1545
- //#region src/local/microvm-hooks.d.ts
1546
- declare const MICROVM_HOOK_PATH_PREFIX = "/aws/lambda-microvms/runtime/v1/";
1547
- declare const MAX_RUN_HOOK_PAYLOAD_BYTES: number;
1420
+ export declare function readContainerLogTail(containerId: string, lines: number, spawnFn?: typeof spawn): Promise<string[]>;
1421
+ export declare const MICROVM_HOOK_PATH_PREFIX = "/aws/lambda-microvms/runtime/v1/";
1422
+ export declare const MAX_RUN_HOOK_PAYLOAD_BYTES: number;
1548
1423
  type HookPostResult = {
1549
1424
  kind: 'status';
1550
1425
  status: number;
@@ -1564,25 +1439,23 @@ interface HookEndpoint {
1564
1439
  host: string;
1565
1440
  port: number;
1566
1441
  }
1567
- declare class MicrovmHookError extends CdkLocalError {
1442
+ export declare class MicrovmHookError extends CdkLocalError {
1568
1443
  constructor(message: string, code?: string);
1569
1444
  }
1570
- declare function generateMicrovmId(): string;
1571
- declare function runHookBody(microvmId: string, runHookPayload: string | undefined): string;
1572
- declare function pollBuildHook(hook: MicrovmBuildHook, endpoint: HookEndpoint, timeoutMs: number, deps?: MicrovmHookDeps): Promise<number>;
1573
- declare function callRuntimeHook(hook: MicrovmRuntimeHook, endpoint: HookEndpoint, timeoutMs: number, body: string | undefined, deps?: MicrovmHookDeps): Promise<void>;
1574
- declare function waitForAppAnswer(endpoint: HookEndpoint, timeoutMs: number, deps?: {
1445
+ export declare function generateMicrovmId(): string;
1446
+ export declare function runHookBody(microvmId: string, runHookPayload: string | undefined): string;
1447
+ export declare function pollBuildHook(hook: MicrovmBuildHook, endpoint: HookEndpoint, timeoutMs: number, deps?: MicrovmHookDeps): Promise<number>;
1448
+ export declare function callRuntimeHook(hook: MicrovmRuntimeHook, endpoint: HookEndpoint, timeoutMs: number, body: string | undefined, deps?: MicrovmHookDeps): Promise<void>;
1449
+ export declare function waitForAppAnswer(endpoint: HookEndpoint, timeoutMs: number, deps?: {
1575
1450
  probe: (host: string, port: number, timeoutMs: number) => Promise<ProbeOutcome>;
1576
1451
  sleep: (ms: number) => Promise<void>;
1577
1452
  now: () => number;
1578
1453
  isAlive?: () => Promise<boolean>;
1579
1454
  }): Promise<void>;
1580
- declare function postHook(host: string, port: number, path: string, body: string | undefined, timeoutMs: number): Promise<HookPostResult>;
1581
- //#endregion
1582
- //#region src/local/microvm-front-door.d.ts
1583
- declare const MICROVM_CONTROL_PATH = "/_cdkl/microvm";
1584
- declare const PROXY_PORT_HEADER = "x-aws-proxy-port";
1585
- declare const MICROVM_WS_BASE_PROTOCOL = "lambda-microvms";
1455
+ export declare function postHook(host: string, port: number, path: string, body: string | undefined, timeoutMs: number): Promise<HookPostResult>;
1456
+ export declare const MICROVM_CONTROL_PATH = "/_cdkl/microvm";
1457
+ export declare const PROXY_PORT_HEADER = "x-aws-proxy-port";
1458
+ export declare const MICROVM_WS_BASE_PROTOCOL = "lambda-microvms";
1586
1459
  type MicrovmState = 'running' | 'suspending' | 'suspended' | 'resuming' | 'terminating' | 'terminated';
1587
1460
  interface MicrovmProxyTarget {
1588
1461
  readonly microvmId: string;
@@ -1611,25 +1484,23 @@ type PortSelection = {
1611
1484
  status: 400;
1612
1485
  message: string;
1613
1486
  };
1614
- declare function selectTargetPort(headers: IncomingMessage['headers']): PortSelection;
1615
- declare function stripMicrovmProxyHeaders(headers: NodeJS.Dict<string | string[]>): boolean;
1616
- declare function startMicrovmFrontDoor(opts: MicrovmFrontDoorOptions): Promise<RunningMicrovmFrontDoor>;
1617
- declare class MicrovmStateError extends Error {
1487
+ export declare function selectTargetPort(headers: IncomingMessage['headers']): PortSelection;
1488
+ export declare function stripMicrovmProxyHeaders(headers: NodeJS.Dict<string | string[]>): boolean;
1489
+ export declare function startMicrovmFrontDoor(opts: MicrovmFrontDoorOptions): Promise<RunningMicrovmFrontDoor>;
1490
+ export declare class MicrovmStateError extends Error {
1618
1491
  constructor(message: string);
1619
1492
  }
1620
- declare function rewriteUpgradeResponseHead(head: string, addBase: boolean): string;
1621
- //#endregion
1622
- //#region src/local/microvm-runner.d.ts
1623
- declare const DEFAULT_TERMINATE_HOOK_TIMEOUT_MS = 10000;
1624
- declare function microvmImageTag(artifact: MicrovmCodeArtifact): string;
1625
- declare function buildMicrovmImage(opts: {
1493
+ export declare function rewriteUpgradeResponseHead(head: string, addBase: boolean): string;
1494
+ export declare const DEFAULT_TERMINATE_HOOK_TIMEOUT_MS = 10000;
1495
+ export declare function microvmImageTag(artifact: MicrovmCodeArtifact): string;
1496
+ export declare function buildMicrovmImage(opts: {
1626
1497
  artifact: MicrovmCodeArtifact;
1627
1498
  platform: string | undefined;
1628
1499
  noCache: boolean;
1629
1500
  }): Promise<string>;
1630
- declare function readExposedPorts(image: string): Promise<number[]>;
1631
- declare function planMicrovmPorts(hooksPort: number | undefined, exposed: readonly number[], extra: readonly number[]): number[];
1632
- declare function setContainerPaused(containerId: string, paused: boolean): Promise<void>;
1501
+ export declare function readExposedPorts(image: string): Promise<number[]>;
1502
+ export declare function planMicrovmPorts(hooksPort: number | undefined, exposed: readonly number[], extra: readonly number[]): number[];
1503
+ export declare function setContainerPaused(containerId: string, paused: boolean): Promise<void>;
1633
1504
  interface LocalMicrovmDeps {
1634
1505
  setPaused: (containerId: string, paused: boolean) => Promise<void>;
1635
1506
  remove: (containerId: string) => Promise<void>;
@@ -1645,7 +1516,7 @@ interface LocalMicrovmOptions {
1645
1516
  timeoutMs: number;
1646
1517
  onTerminated?: (vm: LocalMicrovm) => void;
1647
1518
  }
1648
- declare class LocalMicrovm implements MicrovmProxyTarget {
1519
+ export declare class LocalMicrovm implements MicrovmProxyTarget {
1649
1520
  readonly microvmId: string;
1650
1521
  readonly containerId: string;
1651
1522
  private current;
@@ -1670,8 +1541,6 @@ declare class LocalMicrovm implements MicrovmProxyTarget {
1670
1541
  resume(): Promise<void>;
1671
1542
  terminate(): Promise<void>;
1672
1543
  }
1673
- //#endregion
1674
- //#region src/local/cloudfront-edge-event.d.ts
1675
1544
  type EdgeHeaders = Record<string, Array<{
1676
1545
  key: string;
1677
1546
  value: string;
@@ -1720,18 +1589,18 @@ interface EdgeRequestInput {
1720
1589
  headers: Record<string, string[]>;
1721
1590
  body?: Buffer;
1722
1591
  }
1723
- declare function httpHeadersToEdge(headers: Record<string, string[]>): EdgeHeaders;
1724
- declare function edgeHeadersToHttp(headers: EdgeHeaders): {
1592
+ export declare function httpHeadersToEdge(headers: Record<string, string[]>): EdgeHeaders;
1593
+ export declare function edgeHeadersToHttp(headers: EdgeHeaders): {
1725
1594
  headers: Record<string, string>;
1726
1595
  setCookies: string[];
1727
1596
  };
1728
- declare function buildEdgeRequestEvent(args: {
1597
+ export declare function buildEdgeRequestEvent(args: {
1729
1598
  eventType: 'viewer-request' | 'origin-request';
1730
1599
  config: Omit<EdgeConfig, 'eventType'>;
1731
1600
  request: EdgeRequestInput;
1732
1601
  includeBody: boolean;
1733
1602
  }): EdgeEvent;
1734
- declare function buildEdgeResponseEvent(args: {
1603
+ export declare function buildEdgeResponseEvent(args: {
1735
1604
  eventType: 'origin-response' | 'viewer-response';
1736
1605
  config: Omit<EdgeConfig, 'eventType'>;
1737
1606
  request: EdgeRequestInput;
@@ -1746,19 +1615,17 @@ interface EdgeResponseResult {
1746
1615
  setCookies: string[];
1747
1616
  body: Buffer;
1748
1617
  }
1749
- declare function applyEdgeRequestResult(result: unknown, base: EdgeRequestInput): {
1618
+ export declare function applyEdgeRequestResult(result: unknown, base: EdgeRequestInput): {
1750
1619
  kind: 'continue';
1751
1620
  request: EdgeRequestInput;
1752
1621
  } | {
1753
1622
  kind: 'response';
1754
1623
  response: EdgeResponseResult;
1755
1624
  };
1756
- declare function applyEdgeResponseResult(result: unknown, base: {
1625
+ export declare function applyEdgeResponseResult(result: unknown, base: {
1757
1626
  statusCode: number;
1758
1627
  headers: Record<string, string>;
1759
1628
  }, originBody: Buffer): EdgeResponseResult;
1760
- //#endregion
1761
- //#region src/local/cloudfront-kvs-client.d.ts
1762
1629
  interface KvsClientCredentials {
1763
1630
  accessKeyId: string;
1764
1631
  secretAccessKey: string;
@@ -1770,16 +1637,14 @@ interface CreateDeployedKvsDataSourceOptions {
1770
1637
  region?: string;
1771
1638
  credentials?: KvsClientCredentials;
1772
1639
  }
1773
- declare function createDeployedKvsDataSource(options: CreateDeployedKvsDataSourceOptions): KvsDataSource;
1774
- declare function resolveDeployedKvsArnByName(name: string, options?: {
1640
+ export declare function createDeployedKvsDataSource(options: CreateDeployedKvsDataSourceOptions): KvsDataSource;
1641
+ export declare function resolveDeployedKvsArnByName(name: string, options?: {
1775
1642
  region?: string;
1776
1643
  credentials?: KvsClientCredentials;
1777
1644
  }): Promise<{
1778
1645
  arn: string;
1779
1646
  id?: string;
1780
1647
  } | undefined>;
1781
- //#endregion
1782
- //#region src/local/cloudfront-kvs-binding.d.ts
1783
1648
  interface DeployedKvsRef {
1784
1649
  arn: string;
1785
1650
  id?: string;
@@ -1790,12 +1655,10 @@ interface ResolveKvsModulesOptions {
1790
1655
  region?: string;
1791
1656
  credentials?: KvsClientCredentials;
1792
1657
  }
1793
- declare function resolveKvsModulesForDistribution(distribution: ResolvedDistribution, options: ResolveKvsModulesOptions): Promise<{
1658
+ export declare function resolveKvsModulesForDistribution(distribution: ResolvedDistribution, options: ResolveKvsModulesOptions): Promise<{
1794
1659
  warnings: string[];
1795
1660
  }>;
1796
- declare function idFromArn(arn: string): string | undefined;
1797
- //#endregion
1798
- //#region src/local/cloudfront-distribution-config.d.ts
1661
+ export declare function idFromArn(arn: string): string | undefined;
1799
1662
  interface CloudFrontClientCredentials {
1800
1663
  accessKeyId: string;
1801
1664
  secretAccessKey: string;
@@ -1810,9 +1673,7 @@ interface ResolveDeployedOriginBucketOptions {
1810
1673
  DomainName?: string;
1811
1674
  }>>;
1812
1675
  }
1813
- declare function resolveDeployedOriginBucket(options: ResolveDeployedOriginBucketOptions): Promise<string | undefined>;
1814
- //#endregion
1815
- //#region src/local/cloudfront-lambda-origin.d.ts
1676
+ export declare function resolveDeployedOriginBucket(options: ResolveDeployedOriginBucketOptions): Promise<string | undefined>;
1816
1677
  interface LambdaUrlOriginRequest {
1817
1678
  method: string;
1818
1679
  uri: string;
@@ -1827,30 +1688,22 @@ interface LambdaUrlOriginResult {
1827
1688
  cookies: string[];
1828
1689
  body: Buffer;
1829
1690
  }
1830
- declare function serveLambdaUrlOrigin(args: {
1691
+ export declare function serveLambdaUrlOrigin(args: {
1831
1692
  invoke: (event: Record<string, unknown>) => Promise<unknown>;
1832
1693
  functionUrlLogicalId: string;
1833
1694
  functionLogicalId: string;
1834
1695
  request: LambdaUrlOriginRequest;
1835
1696
  }): Promise<LambdaUrlOriginResult>;
1836
- //#endregion
1837
- //#region src/utils/docker-registry-config.d.ts
1838
- declare function isEcrRegistryConfigKey(key: string): boolean;
1839
- declare function stripEcrCredentials(config: Record<string, unknown>): Record<string, unknown>;
1840
- declare function noImplicitEcrPullArgs(image: string): string[];
1841
- declare function dockerRegistryEnv(workload?: AwsEmulatorWorkload): Record<string, string | undefined>;
1842
- //#endregion
1843
- //#region src/local/studio-custom-resource-filter.d.ts
1844
- declare function isCustomResourceLambdaTarget(entry: StudioTarget): boolean;
1697
+ export declare function isEcrRegistryConfigKey(key: string): boolean;
1698
+ export declare function stripEcrCredentials(config: Record<string, unknown>): Record<string, unknown>;
1699
+ export declare function noImplicitEcrPullArgs(image: string): string[];
1700
+ export declare function dockerRegistryEnv(workload?: AwsEmulatorWorkload): Record<string, string | undefined>;
1701
+ export declare function isCustomResourceLambdaTarget(entry: StudioTarget): boolean;
1845
1702
  interface FilterStudioCustomResourcesOptions {
1846
1703
  include?: boolean;
1847
1704
  }
1848
- declare function filterStudioCustomResources(groups: StudioTargetGroup[], opts?: FilterStudioCustomResourcesOptions): StudioTargetGroup[];
1849
- //#endregion
1850
- //#region src/local/studio-ui.d.ts
1851
- declare function renderStudioHtml(appLabel: string, cliName: string): string;
1852
- //#endregion
1853
- //#region src/local/studio-reinvoke.d.ts
1705
+ export declare function filterStudioCustomResources(groups: StudioTargetGroup[], opts?: FilterStudioCustomResourcesOptions): StudioTargetGroup[];
1706
+ export declare function renderStudioHtml(appLabel: string, cliName: string): string;
1854
1707
  interface ReinvokeInput {
1855
1708
  invocationId: string;
1856
1709
  payload: unknown;
@@ -1859,20 +1712,18 @@ interface ReinvokeDeps {
1859
1712
  store: StudioStore;
1860
1713
  dispatcher: StudioDispatcher;
1861
1714
  }
1862
- declare function reinvoke(input: ReinvokeInput, deps: ReinvokeDeps): Promise<StudioRunResult>;
1863
- //#endregion
1864
- //#region src/local/dynamic-reference-resolver.d.ts
1865
- declare class DynamicReferenceResolutionError extends Error {
1715
+ export declare function reinvoke(input: ReinvokeInput, deps: ReinvokeDeps): Promise<StudioRunResult>;
1716
+ export declare class DynamicReferenceResolutionError extends Error {
1866
1717
  constructor(message: string);
1867
1718
  }
1868
- declare function firstUsableRegion(...candidates: Array<string | undefined>): string | undefined;
1869
- declare function keysOverriddenBy(templateEnv: Record<string, unknown> | undefined, applyOverrides: (env: Record<string, string>) => Record<string, string>): Set<string>;
1870
- declare function withoutKeys<T>(env: Record<string, T>, keys: ReadonlySet<string>): Record<string, T>;
1871
- declare function deployedFillMayBeSecret(templateValue: unknown, template?: {
1719
+ export declare function firstUsableRegion(...candidates: Array<string | undefined>): string | undefined;
1720
+ export declare function keysOverriddenBy(templateEnv: Record<string, unknown> | undefined, applyOverrides: (env: Record<string, string>) => Record<string, string>): Set<string>;
1721
+ export declare function withoutKeys<T>(env: Record<string, T>, keys: ReadonlySet<string>): Record<string, T>;
1722
+ export declare function deployedFillMayBeSecret(templateValue: unknown, template?: {
1872
1723
  Parameters?: Record<string, unknown>;
1873
1724
  Resources?: Record<string, unknown>;
1874
1725
  }): boolean;
1875
- declare function containsDynamicReference(value: unknown): value is string;
1726
+ export declare function containsDynamicReference(value: unknown): value is string;
1876
1727
  interface SecretsManagerReference {
1877
1728
  service: 'secretsmanager';
1878
1729
  raw: string;
@@ -1890,7 +1741,7 @@ interface SsmReference {
1890
1741
  version?: string;
1891
1742
  }
1892
1743
  type DynamicReference = SecretsManagerReference | SsmReference;
1893
- declare function parseDynamicReference(raw: string): DynamicReference;
1744
+ export declare function parseDynamicReference(raw: string): DynamicReference;
1894
1745
  interface DynamicReferenceResolverOptions {
1895
1746
  profile?: string;
1896
1747
  secretsManagerClientFactory?: (region: string | undefined, route: DynamicReferenceRoute) => Pick<SecretsManagerClient, 'send' | 'destroy'>;
@@ -1907,7 +1758,7 @@ interface ResolveStringOptions {
1907
1758
  overridable?: boolean;
1908
1759
  workload?: AwsEmulatorWorkload | undefined;
1909
1760
  }
1910
- declare class DynamicReferenceResolver {
1761
+ export declare class DynamicReferenceResolver {
1911
1762
  private readonly smClients;
1912
1763
  private readonly ssmClients;
1913
1764
  private readonly cache;
@@ -1928,26 +1779,20 @@ interface ResolveEnvDynamicReferencesOptions extends DynamicReferenceResolverOpt
1928
1779
  skipKeys?: ReadonlySet<string>;
1929
1780
  resolver?: DynamicReferenceResolver;
1930
1781
  }
1931
- declare function keysNotFromTemplate(templateEnv: Record<string, unknown> | undefined, finalEnv: Record<string, string>): Set<string>;
1932
- declare function resolveDynamicReferencesInEnv(env: Record<string, string>, options: ResolveEnvDynamicReferencesOptions): Promise<{
1782
+ export declare function keysNotFromTemplate(templateEnv: Record<string, unknown> | undefined, finalEnv: Record<string, string>): Set<string>;
1783
+ export declare function resolveDynamicReferencesInEnv(env: Record<string, string>, options: ResolveEnvDynamicReferencesOptions): Promise<{
1933
1784
  env: Record<string, string>;
1934
1785
  resolvedKeys: string[];
1935
1786
  }>;
1936
- //#endregion
1937
- //#region src/local/aws-endpoint-service-ids.d.ts
1938
- declare const AWS_ENDPOINT_SERVICE_IDS: ReadonlySet<string>;
1939
- //#endregion
1940
- //#region src/local/mixed-mode-tls.d.ts
1787
+ export declare const AWS_ENDPOINT_SERVICE_IDS: ReadonlySet<string>;
1941
1788
  interface MixedModeTlsMaterials {
1942
1789
  caCertPem: string;
1943
1790
  certPem: string;
1944
1791
  keyPem: string;
1945
1792
  }
1946
- declare function createMixedModeTlsMaterials(now?: Date, leafDnsNames?: readonly string[]): MixedModeTlsMaterials;
1947
- declare function buildJavaTrustStore(pems: readonly string[], aliasPrefix?: string): Buffer;
1948
- //#endregion
1949
- //#region src/local/emulator-resign-sidecar.d.ts
1950
- declare const MIXED_MODE_RESIGN_BODY_CAP_BYTES: number;
1793
+ export declare function createMixedModeTlsMaterials(now?: Date, leafDnsNames?: readonly string[]): MixedModeTlsMaterials;
1794
+ export declare function buildJavaTrustStore(pems: readonly string[], aliasPrefix?: string): Buffer;
1795
+ export declare const MIXED_MODE_RESIGN_BODY_CAP_BYTES: number;
1951
1796
  interface ResignSidecarConfig {
1952
1797
  port: number;
1953
1798
  upstream: string;
@@ -1963,8 +1808,6 @@ interface ResignSidecarConfig {
1963
1808
  region?: string;
1964
1809
  capBytes: number;
1965
1810
  }
1966
- //#endregion
1967
- //#region src/local/docker-runner.d.ts
1968
1811
  interface DockerRunOptions {
1969
1812
  image: string;
1970
1813
  mounts: {
@@ -2003,8 +1846,7 @@ interface DockerRunOptions {
2003
1846
  }[];
2004
1847
  autoRemove?: boolean;
2005
1848
  }
2006
- declare function withWorkloadAwsWiring(opts: DockerRunOptions, wiring: WorkloadAwsWiring): Promise<DockerRunOptions>;
2007
- declare function attachLoopbackForwarder(containerId: string, wiring: WorkloadAwsWiring, ports?: readonly number[]): Promise<void>;
2008
- //#endregion
2009
- export { A2A_CONTAINER_PORT, A2A_PATH, type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AGENTCORE_A2A_PROTOCOL, AGENTCORE_AGUI_PROTOCOL, AGENTCORE_HTTP_PROTOCOL, AGENTCORE_MCP_PROTOCOL, AGENTCORE_RUNTIME_TYPE, AGENTCORE_SESSION_ID_HEADER, AGENTCORE_SIGV4_SERVICE, AUTH_OFF_PLACEHOLDER_CREDENTIALS, AWS_ENDPOINT_SERVICE_IDS, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreHttpServerConfig, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, AgentCoreResolutionError, type AgentCoreServeAuthCheck, type AgentCoreServeAuthResult, type AgentCoreServeRoute, type AgentCoreServeSignRequest, type AgentCoreWsBridgeHandle, type AgentCoreWsBridgeServerConfig, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AttachedAgentCoreWsBridge, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type AwsEmulatorEnvVarsScan, type AwsEmulatorServiceRouting, type AwsEmulatorSidecarWiring, type AwsEmulatorWorkload, type AwsEndpointOverride, type AwsProxyClientConfig, type BridgeAgentCoreWsOptions, type BucketDeploymentObjectKeyResolution, type BuildAgentCoreCodeImageOptions, type BuildAgentCoreServeAuthCheckOptions, type BuildContainerImageOptions, CA_TRUST_ENV_KEYS, CLOUDFRONT_DISTRIBUTION_TYPE, type CachedAuthorizerResult, type CallerCredentials, type CdkWatchConfig, type CfRequest, type CfResponse, type CloudFrontClientCredentials, type CloudFrontKvsAssociation, type CloudFrontKvsHandle, type CloudFrontModule, type CloudMapIndex, CloudMapRegistry, type CompiledCloudFrontFunction, ConnectionRegistry, type ConnectionRegistryEntry, type CorsConfig, type CreateDeployedKvsDataSourceOptions, type CredentialsLoader, DEFAULT_AWS_EMULATOR_URL, DEFAULT_SHADOW_READY_TIMEOUT_MS, DEFAULT_TERMINATE_HOOK_TIMEOUT_MS, type DeployedKvsRef, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type DynamicReference, DynamicReferenceResolutionError, DynamicReferenceResolver, type DynamicReferenceResolverOptions, EMULATOR_SCRUBBED_ENV_KEYS, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EdgeEvent, type EdgeEventType, type EdgeRequest, type EdgeRequestInput, type EdgeResponse, type EdgeResponseResult, type EmulatorRunFiles, type EmulatorStrategy, type EnvOverrideFile, type ErrorResponseCandidate, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FilterStudioCustomResourcesOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_CA_TRUST_ENV_KEYS, HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS, HOST_DOCKER_INTERNAL_GATEWAY, HOST_GATEWAY_MIN_VERSION, type HookEndpoint, type HookPostResult, type HttpRequestSnapshot, type ImageOverrideEntry, ImageOverrideError, type ImageOverrideGlobals, type ImageOverrideMap, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type KvsDataSource, LEGACY_AWS_EMULATOR_SENTINEL, LOOPBACK_FORWARDER_IMAGE, type LambdaArnResolveOutcome, type LambdaUrlInvokerMap, type LambdaUrlOriginRequest, type LambdaUrlOriginResult, LocalInvokeBuildError, LocalMicrovm, type LocalMicrovmDeps, type LocalMicrovmOptions, LocalStartCloudFrontError, type LoopbackForwarderNamespace, type LoopbackForwarderResult, MAX_RUN_HOOK_PAYLOAD_BYTES, MAX_TASKS_SUBNET_RANGE_CAP, MCP_CONTAINER_PORT, MCP_PATH, MCP_PROTOCOL_VERSION, MICROVM_CONTROL_PATH, MICROVM_DEFAULT_INGRESS_PORT, MICROVM_HOOK_PATH_PREFIX, MICROVM_IMAGE_TYPE, MICROVM_WS_BASE_PROTOCOL, MIXED_MODE_RESIGN_BODY_CAP_BYTES, MIXED_MODE_RESIGN_PORT, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MicrovmBuildHook, type MicrovmCodeArtifact, type MicrovmFrontDoorOptions, type MicrovmHookConfig, type MicrovmHookDeps, MicrovmHookError, type MicrovmHookName, type MicrovmImageConfig, type MicrovmProxyTarget, MicrovmResolutionError, type MicrovmRuntimeHook, type MicrovmState, MicrovmStateError, type MixedModeStateProviderOptions, type MixedModeTlsMaterials, type MixedModeWiring, type MtlsServerConfig, type NamespaceOwnerForwarderOptions, PROXY_PORT_HEADER, type ParsedAwsEndpoint, type PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type PortSelection, type ProbeOutcome, REAL_AWS_SENTINEL, type RawImageOverrideFlags, type RealAwsException, RecentOutput, type RegistrationHandle, type ReinvokeDeps, type ReinvokeInput, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResignSidecarConfig, type ResolveDeployedOriginBucketOptions, type ResolveEnvDynamicReferencesOptions, type ResolveKvsModulesOptions, type ResolveParametersOutcome, type ResolveWorkloadAwsWiringOptions, type ResolvedAgentCoreRuntime, type ResolvedBehavior, type ResolvedCloudFrontFunction, type ResolvedCustomErrorResponse, type ResolvedDistribution, type ResolvedLambdaEdge, type ResolvedLambdaEdgeAssoc, type ResolvedListenerAction, type ResolvedMicrovmImage, type ResolvedOrigin, type ResolvedStage, type ResolvedWebFunction, type ResolvedWebFunctionEndpoint, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningAgentCoreHttpServer, type RunningAgentCoreWsBridge, type RunningMicrovmFrontDoor, type RunningStudioProxy, type RunningStudioServer, type S3BundleCredentials, type S3BundleLocation, type S3FetchResult, type S3ObjectFetcher, type S3OriginCredentials, type S3OriginReader, type S3OriginReaderOptions, SECOND_ASSUME_MESSAGE, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, SUPPORTED_CODE_RUNTIMES, type ServeInboundAuthPlan, type ServeRequestInput, type ServeRequestResult, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartLoopbackForwarderOptions, type StartWebFunctionContainerOptions, type StartedApiServer, type StartedCloudFrontServer, type StaticOriginResult, type StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeRequestPayload, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, UNNAMED_WORKLOAD, VtlEvaluationError, WEB_FUNCTION_CONTAINER_PORT, WEB_FUNCTION_ENDPOINT_TYPE, WEB_FUNCTION_HTTP_ENDPOINT_ENV, WEB_FUNCTION_REVISION_TYPE, WEB_FUNCTION_RUNTIMES, WEB_FUNCTION_TYPE, type WarnedAt, type WatchPredicates, type WebFunctionArtifact, type WebFunctionCodeConfig, type WebFunctionContainerPlan, type WebFunctionImageArtifact, WebFunctionResolutionError, type WebFunctionRevisionSelection, type WebFunctionRevisionWeight, type WebFunctionRuntimeSpec, type WebFunctionServiceConfig, type WebFunctionStartCommand, type WebFunctionZipArtifact, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, type WorkloadAwsWiring, type WorkloadAwsWiringCommandOptions, type WorkloadMount, type WorkloadRouteGroup, a2aInvokeOnce, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartAgentCoreSpecificOptions, addStartApiSpecificOptions, addStartCloudFrontSpecificOptions, addStartMicrovmSpecificOptions, addStartServiceSpecificOptions, addStartWebFunctionSpecificOptions, addStudioSpecificOptions, albStrategy, annotateAlbPinnedBackingServices, annotateEcsTaskPinnedTargets, annotatePinnedEcsTargets, applyAuthorizerOverlay, applyCorsResponseHeaders, applyEdgeRequestResult, applyEdgeResponseResult, applyWorkloadAwsWiringToEnv, architectureToPlatform, assertEcsTaskImagesResolvable, assumedRoleRecorded, attachAgentCoreWsBridge, attachAuthorizers, attachContainerLogStreamer, attachLoopbackForwarder, attachStageContext, availableApiIdentifiers, availableWebSocketApiIdentifiers, awaitLoopbackForwarderStatus, awsClientConfigForService, awsEmulatorEnvName, awsEmulatorRealServices, awsEndpointOptions, awsEndpointOverrideClientConfig, bridgeAgentCoreWs, bucketDeploymentSourceObjectKeys, bufferToBody, buildAgentCoreCodeImage, buildAgentCoreServeAuthCheck, buildCloudMapIndex, buildCognitoJwksUrl, buildConnectEvent, buildContainerImage, buildCorsConfigByApiId, buildCorsConfigFromCloudFrontChain, buildDisconnectEvent, buildEcsImageResolutionContext, buildEdgeRequestEvent, buildEdgeResponseEvent, buildHttpApiV2Event, buildImageOverrideTag, buildJavaTrustStore, buildJwksUrlFromIssuer, buildLoopbackForwarderDockerArgs, buildMessageEvent, buildMethodArn, buildMgmtEndpointEnvUrl, buildMicrovmImage, buildMicrovmLambdaView, buildNamespaceOwnerForwarderDockerArgs, buildNodeEntryFileStart, buildProxyClientConfig, buildRestV1Event, buildStageMap, buildStsClientConfig, buildWebFunctionLambdaView, callRuntimeHook, canonicalizeImageOverrideKeys, classifyS3Error, classifySourceChange, coerceRunRequest, coerceServeRequest, coerceStopRequest, collectHostEndpointOverrides, compileCloudFrontFunction, computeCodeImageTag, computeRequestIdentityHash, containerFailure, containsDynamicReference, createAuthorizerCache, createCloudFrontModule, createDeployedKvsDataSource, createFileWatcher, createJwksCache, createLocalFileKvsDataSource, createMixedModeStateProvider, createMixedModeTlsMaterials, createS3OriginReader, createStudioDispatcher, createStudioServeManager, createStudioStore, createUnboundCloudFrontModule, createWatchPredicates, defaultCredentialsLoader, defaultWebFunctionPlatform, deployAccountStsClientConfig, deployArtifactClientConfig, deployedFillMayBeSecret, derivePseudoParametersFromRegion, describeAwsFailureForWarn, describeCredentialLoadFailure, describeForwarderFailure, describePinnedImageUri, describeS3OriginDomain, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, displayEndpointValue, disposeMicrovmCodeArtifact, disposeWebFunctionArtifact, dockerRegistryEnv, downloadAndExtractS3Bundle, ecsClusterOption, edgeHeadersToHttp, effectiveLoopbackPorts, enforceImageOverrideOrphans, ensureForwarderImage, evaluateCachedLambdaPolicy, evaluateResponseParameters, extractKvsAssociations, filterRoutesByApiIdentifier, filterRoutesByApiIdentifiers, filterStudioCustomResources, filterStudioTargetGroups, filterWebSocketApisByIdentifiers, finalizeMicrovmEnv, finalizeWebFunctionEnv, findFileAssetForObjectKey, findLegacyAwsEmulatorSentinels, findRealAwsExceptions, firstUsableRegion, formatStateRemedy, generateMicrovmId, getActiveWorkloadAwsWiring, getAwsEmulatorServiceRouting, getAwsEndpointOverride, getContainerCaBundlePath, getContainerJavaTruststorePath, getContainerNetworkIp, groupRoutesByServer, groupWorkloadsRoutedApart, handleConnectionsRequest, httpHeadersToEdge, idFromArn, imageOverrideKeyAliases, invokeAgentCore, invokeAgentCoreWs, invokeRequestAuthorizer, invokeTokenAuthorizer, isApplicationLoadBalancer, isAwsServiceRoutedToEmulator, isBucketDeploymentResource, isCloudFrontDistribution, isCustomResourceLambdaTarget, isEcrRegistryConfigKey, isFunctionUrlOacFronted, isLegacyAwsEmulatorSentinel, isLocalCdkAssetImage, isProxyEnvConfigured, isRealAwsSentinel, javaTruststoreToolOptions, keysNotFromTemplate, keysOverriddenBy, legacyAwsEmulatorSentinelMessage, listPinnedTargets, loopbackForwarderPlan, matchBehavior, matchPreflight, matchRoute, materializeLayerFromArn, mcpInvokeOnce, mergeForService, mergeJavaToolOptions, microvmFidelityWarnings, microvmImageTag, noImplicitEcrPullArgs, normalizeAwsEndpointServiceId, normalizeKvsFileKeys, parseAwsEndpoint, parseConnectionsPath, parseDynamicReference, parseImageOverrideFlags, parseKvsFileOverrides, parseLbPortOverrides, parseMaxTasks, parseOriginOverrides, parseRestartPolicy, parseSelectionExpressionPath, parseSseForJsonRpc, parseWebFunctionBuildConfig, pickAgentCoreCandidateStack, pickFunctionUrlLogicalIdFromOrigin, pickKvsLogicalIdFromArn, pickLambdaEdgeFunctionLogicalId, pickRefLogicalId, pickResponseTemplate, pickTargetFunctionLogicalId, pickWebFunctionEndpointLogicalIdFromOrigin, planMicrovmPorts, planWebFunctionContainer, pollBuildHook, postHook, probeAwsEmulatorHealth, probeHostGatewaySupport, readAwsEmulatorEnvVarsFile, readContainerLogTail, readEmulatorRunFiles, readEnvCallerCredentials, readEnvVarsFileText, readExposedPorts, readMicrovmImageConfig, readMtlsMaterialsFromDisk, readProfileEndpointSettings, readRunHookPayload, readWebFunctionServiceConfig, realAwsEndpointFor, realAwsServicesForWorkload, realAwsServicesOf, recordAssumedRole, reinvoke, relayServeRequest, renderCodeDockerfile, renderStudioHtml, resetWorkloadIdentity, resolveAgentCoreTarget, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveAwsEmulatorOption, resolveBucketDeploymentObjectKey, resolveCloudFrontDistribution, resolveCloudFrontTarget, resolveDeployedKvsArnByName, resolveDeployedOriginBucket, resolveDynamicReferencesInEnv, resolveEcsAssumeRoleOption, resolveEnvVars, resolveErrorResponseCandidates, resolveHostDefaultCredentials, resolveHostGatewayExtraHosts, resolveImageOverrides, resolveKvsModulesForDistribution, resolveLambdaArnIntrinsic, resolveMicrovmCodeArtifact, resolveMicrovmImageTarget, resolveProfileCredentials, resolveRuntimeCodeMountPath, resolveRuntimeFileExtension, resolveRuntimeImage, resolveSelectionExpression, resolveServeBaseUrl, resolveServiceIntegrationParameters, resolveSharedSidecarCredentials, resolveSingleTarget, resolveWatchConfig, resolveWebFunctionArtifact, resolveWebFunctionRuntime, resolveWebFunctionTarget, resolveWorkloadAwsWiring, resourceTypeMatchesService, rewriteUpgradeResponseHead, runEcsServiceEmulator, runHookBody, runImageOverrideBuilds, runViewerRequest, runViewerResponse, s3KeyOfUri, selectIntegrationResponse, selectServeInboundAuth, selectTargetPort, serveFromStaticOrigin, serveLambdaUrlOrigin, serviceStrategy, setActiveWorkloadAwsWiring, setAwsEmulatorServiceRouting, setAwsEndpointOverride, setContainerPaused, setShadowReadyTimeoutMs, signAgentCoreInvocation, startAgentCoreHttpServer, startAgentCoreWsBridge, startApiServer, startCloudFrontServer, startLoopbackForwarder, startMicrovmFrontDoor, startStudioProxy, startStudioServer, startWebFunctionContainer, stripCloudFrontImport, stripEcrCredentials, stripMicrovmProxyHeaders, substituteImagePlaceholders, supportedWebFunctionRuntimes, takeAwsEmulatorStateSourceHint, toCmdArgv, toStudioTargetGroups, translateLambdaResponse, tryParseStatus, tryResolveImageFnJoin, validateAwsEmulatorEnvVars, verifyCognitoJwt, verifyJwtAuthorizer, verifyJwtViaDiscovery, waitForAgentCoreHttpReady, waitForAgentCorePing, waitForAppAnswer, waitForWebFunctionReady, watchContainerExit, webFunctionAssumeRole, webFunctionFidelityWarnings, webSocketApiMatchesIdentifier, withWorkloadAwsWiring, withoutKeys, workloadClientConfig, workloadStsClientConfig, writeCaBundleFile };
1849
+ export declare function withWorkloadAwsWiring(opts: DockerRunOptions, wiring: WorkloadAwsWiring): Promise<DockerRunOptions>;
1850
+ export declare function attachLoopbackForwarder(containerId: string, wiring: WorkloadAwsWiring, ports?: readonly number[]): Promise<void>;
1851
+ export { type A2aInvokeOptions, type A2aInvokeResult, type A2aJsonRpcRequest, AUTH_OFF_PLACEHOLDER_CREDENTIALS, type AgentCoreCodeArtifact, type AgentCoreCustomClaim, type AgentCoreHttpServerConfig, type AgentCoreInvokeResult, type AgentCoreJwtAuthorizer, type AgentCoreServeAuthCheck, type AgentCoreServeAuthResult, type AgentCoreServeRoute, type AgentCoreServeSignRequest, type AgentCoreWsBridgeHandle, type AgentCoreWsBridgeServerConfig, type AgentCoreWsResult, type ApiServerGroup, type ApiTargetSubset, type AttachedAgentCoreWsBridge, type AuthorizerCache, type AuthorizerEventOverlay, type AuthorizerInfo, type AwsEmulatorEnvVarsScan, type AwsEmulatorServiceRouting, type AwsEmulatorSidecarWiring, type AwsEmulatorWorkload, type AwsEndpointOverride, type AwsProxyClientConfig, type BridgeAgentCoreWsOptions, type BucketDeploymentObjectKeyResolution, type BuildAgentCoreCodeImageOptions, type BuildAgentCoreServeAuthCheckOptions, type BuildContainerImageOptions, CA_TRUST_ENV_KEYS, type CachedAuthorizerResult, type CallerCredentials, type CdkWatchConfig, type CfRequest, type CfResponse, type CloudFrontClientCredentials, type CloudFrontKvsAssociation, type CloudFrontKvsHandle, type CloudFrontModule, type CloudMapIndex, type CompiledCloudFrontFunction, type ConnectionRegistryEntry, type CorsConfig, type CreateDeployedKvsDataSourceOptions, type CredentialsLoader, DEFAULT_AWS_EMULATOR_URL, DEFAULT_SHADOW_READY_TIMEOUT_MS, type DeployedKvsRef, type DiscoveredRoute, type DiscoveredWebSocketApi, type DiscoveryJwtAuthorizer, type DownloadS3BundleOptions, type DynamicReference, type DynamicReferenceResolverOptions, EMULATOR_SCRUBBED_ENV_KEYS, type EcsServiceEmulatorOptions, EcsTaskResolutionError, type EdgeEvent, type EdgeEventType, type EdgeRequest, type EdgeRequestInput, type EdgeResponse, type EdgeResponseResult, type EmulatorRunFiles, type EmulatorStrategy, type EnvOverrideFile, type ErrorResponseCandidate, type ExtractedS3Bundle, type FileWatcher, type FileWatcherOptions, type FilterStudioCustomResourcesOptions, type FrontDoorForwardTarget, type FrontDoorPlan, HOST_CA_TRUST_ENV_KEYS, HOST_DEFAULT_CREDENTIALS_MISS_TTL_MS, type HookEndpoint, type HookPostResult, type HttpRequestSnapshot, type ImageOverrideEntry, type ImageOverrideGlobals, type ImageOverrideMap, type ImageResolutionContext, type IntegrationResponseEntry, type InvokeAgentCoreOptions, type InvokeAgentCoreWsOptions, type JwksCache, type JwtCustomClaim, type KvsDataSource, LEGACY_AWS_EMULATOR_SENTINEL, type LambdaArnResolveOutcome, type LambdaUrlInvokerMap, type LambdaUrlOriginRequest, type LambdaUrlOriginResult, LocalInvokeBuildError, type LocalMicrovmDeps, type LocalMicrovmOptions, LocalStartCloudFrontError, type LoopbackForwarderNamespace, type LoopbackForwarderResult, MAX_TASKS_SUBNET_RANGE_CAP, MICROVM_DEFAULT_INGRESS_PORT, MICROVM_IMAGE_TYPE, MIXED_MODE_RESIGN_PORT, type MatchedRouteContext, type McpInvokeOptions, type McpInvokeResult, type McpJsonRpcRequest, type MicrovmBuildHook, type MicrovmCodeArtifact, type MicrovmFrontDoorOptions, type MicrovmHookConfig, type MicrovmHookDeps, type MicrovmHookName, type MicrovmImageConfig, type MicrovmProxyTarget, MicrovmResolutionError, type MicrovmRuntimeHook, type MicrovmState, type MixedModeStateProviderOptions, type MixedModeTlsMaterials, type MixedModeWiring, type MtlsServerConfig, type NamespaceOwnerForwarderOptions, type ParsedAwsEndpoint, type PerServiceBuildInputs, type PinnedTargetEntry, type PlannedAction, type PlannedEcsForwardTarget, type PlannedFixedResponseAction, type PlannedForwardAction, type PlannedForwardTarget, type PlannedFrontDoorListener, type PlannedLambdaForwardTarget, type PlannedRedirectAction, type PortSelection, type ProbeOutcome, REAL_AWS_SENTINEL, type RawImageOverrideFlags, type RealAwsException, type RegistrationHandle, type ReinvokeDeps, type ReinvokeInput, type ReloadAssetContext, type ReloadVerdict, type RequestParameterContext, type ResignSidecarConfig, type ResolveDeployedOriginBucketOptions, type ResolveEnvDynamicReferencesOptions, type ResolveKvsModulesOptions, type ResolveParametersOutcome, type ResolveWorkloadAwsWiringOptions, type ResolvedAgentCoreRuntime, type ResolvedBehavior, type ResolvedCloudFrontFunction, type ResolvedCustomErrorResponse, type ResolvedDistribution, type ResolvedLambdaEdge, type ResolvedLambdaEdgeAssoc, type ResolvedListenerAction, type ResolvedMicrovmImage, type ResolvedOrigin, type ResolvedStage, type ResolvedWebFunction, type ResolvedWebFunctionEndpoint, type RestV1IntegrationConfig, type RouteMatchResult, type RouteWithAuth, type RunningAgentCoreHttpServer, type RunningAgentCoreWsBridge, type RunningMicrovmFrontDoor, type RunningStudioProxy, type RunningStudioServer, type S3BundleCredentials, type S3BundleLocation, type S3FetchResult, type S3ObjectFetcher, type S3OriginCredentials, type S3OriginReader, type S3OriginReaderOptions, SECOND_ASSUME_MESSAGE, SOFT_RELOAD_COMPLETION_LOG_SUFFIX, type ServeInboundAuthPlan, type ServeRequestInput, type ServeRequestResult, type ServerState, type ServiceBoot, type SigV4Credentials, type SignAgentCoreInvocationOptions, type SignedAgentCoreHeaders, type StartLoopbackForwarderOptions, type StartWebFunctionContainerOptions, type StartedApiServer, type StartedCloudFrontServer, type StaticOriginResult, type StudioDispatchConfig, type StudioDispatcher, StudioEventBus, type StudioHistory, type StudioInvocationEvent, type StudioLogEvent, type StudioLogSearchOptions, type StudioProxyConfig, type StudioRunRequest, type StudioRunResult, type StudioServeEvent, type StudioServeManager, type StudioServeManagerConfig, type StudioServeRequest, type StudioServeRequestPayload, type StudioServeState, type StudioServerOptions, type StudioStopRequest, type StudioStore, type StudioStoreOptions, type StudioTarget, type StudioTargetGroup, type StudioTargetKind, type TranslatedHttpResponse, UNNAMED_WORKLOAD, type WarnedAt, type WatchPredicates, type WebFunctionArtifact, type WebFunctionCodeConfig, type WebFunctionContainerPlan, type WebFunctionImageArtifact, type WebFunctionRevisionSelection, type WebFunctionRevisionWeight, type WebFunctionRuntimeSpec, type WebFunctionServiceConfig, type WebFunctionStartCommand, type WebFunctionZipArtifact, type WebSocketHandshakeSnapshot, type WebSocketLambdaEvent, type WebSocketRouteEntry, type WorkloadAwsWiring, type WorkloadAwsWiringCommandOptions, type WorkloadMount, type WorkloadRouteGroup, activateWorkloadAwsWiring, addAlbSpecificOptions, addAwsEndpointOptions, addCommonEcsServiceOptions, addEcsAssumeRoleOptions, addImageOverrideOptions, addInvokeAgentCoreSpecificOptions, addInvokeSpecificOptions, addListSpecificOptions, addRunTaskSpecificOptions, addStartAgentCoreSpecificOptions, addStartApiSpecificOptions, addStartCloudFrontSpecificOptions, addStartMicrovmSpecificOptions, addStartServiceSpecificOptions, addStartWebFunctionSpecificOptions, addStudioSpecificOptions, albStrategy, applyWorkloadAwsWiringToEnv, assertEcsTaskImagesResolvable, assumedRoleRecorded, attachAuthorizers, availableWebSocketApiIdentifiers, awsClientConfigForService, awsEmulatorEnvName, awsEmulatorRealServices, awsEndpointOptions, awsEndpointOverrideClientConfig, bridgeAgentCoreWs, buildEcsImageResolutionContext, buildMicrovmLambdaView, buildProxyClientConfig, buildStsClientConfig, coerceRunRequest, coerceServeRequest, coerceStopRequest, collectHostEndpointOverrides, createMixedModeStateProvider, createStudioDispatcher, createStudioServeManager, createWatchPredicates, deployAccountStsClientConfig, deployArtifactClientConfig, derivePseudoParametersFromRegion, discoverRoutes, discoverWebSocketApis, discoverWebSocketApisOrThrow, displayEndpointValue, disposeMicrovmCodeArtifact, ecsClusterOption, effectiveLoopbackPorts, evaluateResponseParameters, filterWebSocketApisByIdentifiers, finalizeMicrovmEnv, findLegacyAwsEmulatorSentinels, findRealAwsExceptions, formatStateRemedy, getActiveWorkloadAwsWiring, getAwsEmulatorServiceRouting, getAwsEndpointOverride, getContainerCaBundlePath, getContainerJavaTruststorePath, groupWorkloadsRoutedApart, invokeAgentCoreWs, isApplicationLoadBalancer, isAwsServiceRoutedToEmulator, isLegacyAwsEmulatorSentinel, isProxyEnvConfigured, isRealAwsSentinel, javaTruststoreToolOptions, legacyAwsEmulatorSentinelMessage, loopbackForwarderPlan, mergeJavaToolOptions, microvmFidelityWarnings, normalizeAwsEndpointServiceId, normalizeKvsFileKeys, parseAwsEndpoint, parseKvsFileOverrides, parseLbPortOverrides, parseMaxTasks, parseOriginOverrides, parseRestartPolicy, parseSelectionExpressionPath, pickResponseTemplate, probeAwsEmulatorHealth, readAwsEmulatorEnvVarsFile, readEmulatorRunFiles, readEnvCallerCredentials, readEnvVarsFileText, readMicrovmImageConfig, readProfileEndpointSettings, readRunHookPayload, realAwsEndpointFor, realAwsServicesForWorkload, realAwsServicesOf, recordAssumedRole, resetWorkloadIdentity, resolveAlbFrontDoor, resolveAlbTarget, resolveApiTargetSubset, resolveAwsEmulatorOption, resolveCloudFrontTarget, resolveEcsAssumeRoleOption, resolveEnvVars, resolveHostDefaultCredentials, resolveMicrovmCodeArtifact, resolveMicrovmImageTarget, resolveProfileCredentials, resolveServeBaseUrl, resolveSharedSidecarCredentials, resolveWatchConfig, resolveWorkloadAwsWiring, resourceTypeMatchesService, runEcsServiceEmulator, s3KeyOfUri, selectIntegrationResponse, serviceStrategy, setActiveWorkloadAwsWiring, setAwsEmulatorServiceRouting, setAwsEndpointOverride, setShadowReadyTimeoutMs, startStudioProxy, substituteImagePlaceholders, takeAwsEmulatorStateSourceHint, tryParseStatus, tryResolveImageFnJoin, validateAwsEmulatorEnvVars, webSocketApiMatchesIdentifier, workloadClientConfig, workloadStsClientConfig, writeCaBundleFile };
2010
1852
  //# sourceMappingURL=internal.d.ts.map