import { z } from 'zod'; export declare const EXECUTION_CONTRACT_VERSION: 2; export declare const CONVERSATION_TURN_WORKFLOW: "conversation-turn"; export declare const HEARTBEAT_TASK_WORKFLOW: "heartbeat-task"; export declare const EXECUTION_ASSERTION_TYPE: "heddle-execution+jwt"; export declare const MCP_CAPABILITY_TYPE: "heddle-mcp-capability+jwt"; export declare const AGENTCORE_RUNTIME_SESSION_HEADER: "x-amzn-bedrock-agentcore-runtime-session-id"; export declare const EXECUTION_HOST_LOCAL_TOKEN_HEADER: "x-heddle-execution-host-local-token"; export declare const EXECUTION_ASSERTION_HEADER: "x-heddle-execution-host-assertion"; export declare const MCP_CAPABILITY_HEADER: "x-heddle-execution-host-mcp-capability"; export declare const MODEL_CREDENTIAL_HEADER: "x-heddle-execution-host-model-credential"; export declare const OpaqueIdSchema: z.ZodString; export declare const JwtIssuerSchema: z.ZodURL; export declare const JwtAudienceSchema: z.ZodString; export declare const RuntimeSessionIdSchema: z.ZodString; export declare const TimestampSchema: z.ZodISODateTime; /** * One invocation-scoped model credential. OAuth refresh material is * deliberately absent from the wire contract. */ export declare const ExecutionHostModelCredentialSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ type: z.ZodLiteral<"api-key">; apiKey: z.ZodString; }, z.core.$strict>, z.ZodObject<{ type: z.ZodLiteral<"oauth-access-token">; provider: z.ZodLiteral<"openai">; accessToken: z.ZodString; expiresAt: z.ZodNumber; accountId: z.ZodOptional; }, z.core.$strict>], "type">; export declare const McpServerIdSchema: z.ZodString; export declare const McpToolNameSchema: z.ZodString; export declare const McpAllowedToolsSchema: z.ZodArray; export declare const ExecutionHostMcpToolPolicySchema: z.ZodObject<{ allowedTools: z.ZodArray; returnDirectTools: z.ZodOptional>; }, z.core.$strict>; export declare const RuntimeBuiltInToolNameSchema: z.ZodString; /** Exact invocation-scoped authority for Heddle Runtime built-in tools. */ export declare const RuntimeToolPolicySchema: z.ZodObject<{ allow: z.ZodArray; }, z.core.$strict>; /** Durable host facilities that an invocation requires before model execution. */ export declare const ExecutionHostDurabilityRequirementsSchema: z.ZodUnion; memory: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ workingSet: z.ZodOptional>; memory: z.ZodLiteral<"required">; }, z.core.$strict>]>; export declare const ExecutionScopeSchema: z.ZodObject<{ adopterId: z.ZodString; tenantId: z.ZodString; subjectId: z.ZodString; productSessionId: z.ZodString; }, z.core.$strict>; export declare const ExecutionHostConversationTurnRequestSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; kind: z.ZodLiteral<"conversation-turn">; invocationId: z.ZodString; prompt: z.ZodString; durability: z.ZodOptional; memory: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ workingSet: z.ZodOptional>; memory: z.ZodLiteral<"required">; }, z.core.$strict>]>>; deadlineAt: z.ZodOptional; }, z.core.$strict>; export declare const HeartbeatRunContextSchema: z.ZodObject<{ currentDateTime: z.ZodISODateTime; intervalMs: z.ZodNumber; continuationMode: z.ZodOptional>; nextRunAt: z.ZodOptional; previousRunAt: z.ZodOptional; previousRunId: z.ZodOptional; }, z.core.$strict>; export declare const ExecutionHostHeartbeatTaskRequestSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; kind: z.ZodLiteral<"heartbeat-task">; invocationId: z.ZodString; taskId: z.ZodString; task: z.ZodString; runtimeToolPolicy: z.ZodObject<{ allow: z.ZodArray; }, z.core.$strict>; durability: z.ZodOptional; memory: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ workingSet: z.ZodOptional>; memory: z.ZodLiteral<"required">; }, z.core.$strict>]>>; checkpoint: z.ZodOptional>; runContext: z.ZodObject<{ currentDateTime: z.ZodISODateTime; intervalMs: z.ZodNumber; continuationMode: z.ZodOptional>; nextRunAt: z.ZodOptional; previousRunAt: z.ZodOptional; previousRunId: z.ZodOptional; }, z.core.$strict>; model: z.ZodOptional; reasoningEffort: z.ZodOptional>; maxSteps: z.ZodOptional; searchIgnoreDirs: z.ZodOptional>; systemContext: z.ZodOptional; deadlineAt: z.ZodOptional; }, z.core.$strict>; export declare const RuntimePublicResultSchema: z.ZodObject<{ outcome: z.ZodEnum<{ error: "error"; done: "done"; max_steps: "max_steps"; interrupted: "interrupted"; }>; summary: z.ZodOptional; failure: z.ZodOptional; code: z.ZodEnum<{ unknown: "unknown"; authentication: "authentication"; permission: "permission"; quota: "quota"; rate_limit: "rate_limit"; context_window: "context_window"; request: "request"; transport: "transport"; empty_response: "empty_response"; }>; }, z.core.$strict>>; }, z.core.$strict>; export declare const ExecutionHostStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; timestamp: z.ZodISODateTime; sequence: z.ZodLiteral<0>; kind: z.ZodLiteral<"accepted">; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"activity">; activity: z.ZodUnknown; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"result">; result: z.ZodObject<{ outcome: z.ZodEnum<{ error: "error"; done: "done"; max_steps: "max_steps"; interrupted: "interrupted"; }>; summary: z.ZodOptional; failure: z.ZodOptional; code: z.ZodEnum<{ unknown: "unknown"; authentication: "authentication"; permission: "permission"; quota: "quota"; rate_limit: "rate_limit"; context_window: "context_window"; request: "request"; transport: "transport"; empty_response: "empty_response"; }>; }, z.core.$strict>>; }, z.core.$strict>; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"cancelled">; reason: z.ZodString; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodString; message: z.ZodString; }, z.core.$strict>; }, z.core.$strict>], "kind">; export declare const ExecutionHostHeartbeatStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; timestamp: z.ZodISODateTime; sequence: z.ZodLiteral<0>; kind: z.ZodLiteral<"accepted">; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"activity">; activity: z.ZodJSONSchema; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"result">; result: z.ZodRecord; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"cancelled">; reason: z.ZodString; }, z.core.$strict>, z.ZodObject<{ schemaVersion: z.ZodLiteral<2>; invocationId: z.ZodString; runId: z.ZodString; sequence: z.ZodNumber; timestamp: z.ZodISODateTime; kind: z.ZodLiteral<"error">; error: z.ZodObject<{ code: z.ZodString; message: z.ZodString; }, z.core.$strict>; }, z.core.$strict>], "kind">; export declare const HostedExecutionWorkflowSchema: z.ZodEnum<{ "conversation-turn": "conversation-turn"; "heartbeat-task": "heartbeat-task"; }>; export declare const ExecutionAssertionClaimsSchema: z.ZodObject<{ iss: z.ZodURL; aud: z.ZodString; contractVersion: z.ZodLiteral<2>; adopterId: z.ZodString; tenantId: z.ZodString; productSessionId: z.ZodString; runtimeSessionId: z.ZodString; workflow: z.ZodEnum<{ "conversation-turn": "conversation-turn"; "heartbeat-task": "heartbeat-task"; }>; runtimeToolPolicy: z.ZodOptional; }, z.core.$strict>>; durability: z.ZodOptional; memory: z.ZodOptional>; }, z.core.$strict>, z.ZodObject<{ workingSet: z.ZodOptional>; memory: z.ZodLiteral<"required">; }, z.core.$strict>]>>; sub: z.ZodString; jti: z.ZodString; iat: z.ZodNumber; exp: z.ZodNumber; }, z.core.$loose>; export declare const McpCapabilityClaimsSchema: z.ZodObject<{ allowedTools: z.ZodArray; returnDirectTools: z.ZodOptional>; iss: z.ZodURL; aud: z.ZodString; contractVersion: z.ZodLiteral<2>; adopterId: z.ZodString; tenantId: z.ZodString; productSessionId: z.ZodString; runtimeSessionId: z.ZodString; invocationId: z.ZodString; workflow: z.ZodEnum<{ "conversation-turn": "conversation-turn"; "heartbeat-task": "heartbeat-task"; }>; serverId: z.ZodString; sub: z.ZodString; jti: z.ZodString; iat: z.ZodNumber; exp: z.ZodNumber; }, z.core.$loose>; export type ExecutionScope = z.infer; export type ExecutionHostModelCredential = z.infer; export type RuntimeToolPolicy = z.infer; export type ExecutionHostDurabilityRequirements = z.infer; export type ExecutionHostMcpToolPolicy = Readonly<{ allowedTools: readonly string[]; returnDirectTools?: readonly string[]; }>; export type ExecutionHostConversationTurnRequest = z.infer; export type ExecutionHostHeartbeatTaskRequest = z.infer; export type RuntimePublicResult = z.infer; export type ExecutionHostStreamEvent = z.infer; export type ExecutionHostTerminalEvent = Extract; export type ExecutionHostHeartbeatStreamEvent = z.infer; export type ExecutionHostHeartbeatTerminalEvent = Extract; export type ExecutionAssertionClaims = z.infer; export type McpCapabilityClaims = z.infer; export type HostedExecutionWorkflow = z.infer; export declare function isExecutionHostTerminalEvent(event: ExecutionHostStreamEvent): event is ExecutionHostTerminalEvent; export declare function isExecutionHostHeartbeatTerminalEvent(event: ExecutionHostHeartbeatStreamEvent): event is ExecutionHostHeartbeatTerminalEvent; export declare function isSafeWebUrl(url: URL): boolean; export declare function isSameRuntimeToolPolicy(left: { allow: readonly string[]; } | undefined, right: { allow: readonly string[]; } | undefined): boolean; export declare function isSameMcpToolPolicy(left: ExecutionHostMcpToolPolicy | undefined, right: ExecutionHostMcpToolPolicy | undefined): boolean; export declare function isSameDurabilityRequirements(left: ExecutionHostDurabilityRequirements | undefined, right: ExecutionHostDurabilityRequirements | undefined): boolean; /** Explicit Docker Desktop bridge exception for isolated local composition. */ export declare function isDockerLocalWebUrl(url: URL): boolean; //# sourceMappingURL=index.d.ts.map