import { z } from "zod"; import type { ActionContract, ProposeActionContractInput } from "../../protocol/areas/action-contract"; import type { CompileIntentInput, IntentCompilationRecord } from "../../protocol/areas/intent-compilation"; export declare const PackageInstallToolCallSchema: z.ZodObject<{ principalIntentRef: z.ZodString; generatedCodeOrSpecRef: z.ZodString; runtimeExecutionId: z.ZodDefault>; generatedExecutionGraphId: z.ZodDefault>; generatedExecutionNodeId: z.ZodDefault>; toolCallDraftId: z.ZodDefault>; package: z.ZodString; versionRange: z.ZodString; packageManager: z.ZodDefault; registryRef: z.ZodDefault; workspaceRef: z.ZodDefault>; manifestRef: z.ZodDefault>; lockfileRef: z.ZodDefault>; installFlags: z.ZodDefault>; lifecycleScriptPolicy: z.ZodDefault>; resolvedMaterialDigest: z.ZodDefault>; resolvedMaterialEvidenceRefs: z.ZodDefault>; sequenceNumber: z.ZodDefault; requiredPriorActionContractIds: z.ZodDefault>; }, z.core.$strict>; export type PackageInstallToolCall = z.input; export declare const PackageInstallRuntimeConfigSchema: z.ZodObject<{ tenantId: z.ZodString; organizationId: z.ZodString; principalId: z.ZodString; agentId: z.ZodString; runId: z.ZodString; runtimeAdapterId: z.ZodString; operatingEnvelopeId: z.ZodString; toolCatalogRef: z.ZodString; actionCatalogRef: z.ZodString; gatewayRegistryRef: z.ZodString; toolCapabilityId: z.ZodString; actionTypeId: z.ZodString; gatewayRegistryEntryId: z.ZodString; gatewayId: z.ZodString; contractExpiresAt: z.ZodString; signingSecret: z.ZodOptional; }, z.core.$strict>; export type PackageInstallRuntimeConfig = z.input; export type PackageInstallRuntimeProtocol = { compileIntent(input: CompileIntentInput): Promise; proposeActionContract(input: ProposeActionContractInput): Promise; }; export type PackageInstallRuntimeResult = { outcome: "action_contract_proposed"; intentCompilation: IntentCompilationRecord; actionContract: ActionContract; } | { outcome: "intent_compilation_refused"; intentCompilation: IntentCompilationRecord; actionContract: null; refusalReasonCodes: string[]; }; export declare function proposePackageInstallActionContract(protocol: PackageInstallRuntimeProtocol, config: PackageInstallRuntimeConfig, toolCallValue: PackageInstallToolCall): Promise; export declare function compilePackageInstallIntent(protocol: Pick, config: PackageInstallRuntimeConfig, toolCallValue: PackageInstallToolCall): Promise; export declare function buildPackageInstallCompileIntentInput(config: PackageInstallRuntimeConfig, toolCallValue: PackageInstallToolCall): CompileIntentInput; export declare function refusalReasonCodesForCompilation(intentCompilation: IntentCompilationRecord): string[];