import { type Address as SolanaAddress, type Instruction } from "@solana/kit"; import { type Abi, type Address as EvmAddress } from "viem"; import type { NetworkId } from "../chains/index.js"; export type Hex = `0x${string}`; export type ManowarContractName = "AgentFactory" | "Workflow" | "Clone" | "Warp" | "RFA" | "Lease" | "Reputation" | "Validation" | "Royalties" | "Distributor" | "Delegation" | "AgentManager" | "Utils"; export interface ManowarEvmDeployment { readonly contracts: Partial>; } export interface ManowarSolanaDeployment { readonly identityProgramId: string; readonly reputationProgramId: string; readonly validationProgramId: string; readonly marketProgramId: string; } export interface ManowarDeploymentConfig { readonly network: NetworkId; readonly evm?: ManowarEvmDeployment; readonly solana?: ManowarSolanaDeployment; } export interface CreateManowarBlockchainClientInput { readonly network: NetworkId; readonly deployment: ManowarDeploymentConfig; } export interface ManowarEvmOperation { readonly kind: "evm"; readonly network: NetworkId; readonly contractName: ManowarContractName; readonly to: EvmAddress; readonly abi: Abi; readonly functionName: string; readonly args: readonly unknown[]; readonly data: Hex; } export interface ManowarSolanaOperation { readonly kind: "solana"; readonly network: NetworkId; readonly programName: "identity" | "market" | "reputation" | "validation"; readonly instructions: readonly Instruction[]; } export declare const SYSTEM_PROGRAM_ADDRESS: SolanaAddress<"11111111111111111111111111111111">; export declare const TOKEN_PROGRAM_ADDRESS: SolanaAddress<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">; export declare const ASSOCIATED_TOKEN_PROGRAM_ADDRESS: SolanaAddress<"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL">; export declare const AgentFactoryABI: readonly [{ readonly name: "getAgentData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensesMinted"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "creatorFee"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "cloneable"; readonly type: "bool"; }, { readonly name: "isClone"; readonly type: "bool"; }, { readonly name: "parentAgentId"; readonly type: "uint256"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; }]; }, { readonly name: "totalAgents"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "hasAvailableLicenses"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "available"; readonly type: "bool"; }]; }, { readonly name: "getDnaHash"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }]; }, { readonly name: "ownerOf"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "owner"; readonly type: "address"; }]; }, { readonly name: "tokenURI"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "uri"; readonly type: "string"; }]; }, { readonly name: "isLicensedTo"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "workflowContract"; readonly type: "address"; }, { readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "licensed"; readonly type: "bool"; }]; }, { readonly name: "getLicenseRecords"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "records"; readonly type: "tuple[]"; readonly components: readonly [{ readonly name: "workflowContract"; readonly type: "address"; }, { readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "licensedAt"; readonly type: "uint256"; }]; }]; }, { readonly name: "agentExists"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "exists"; readonly type: "bool"; }]; }, { readonly name: "mintAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "creatorFee"; readonly type: "uint256"; }, { readonly name: "cloneable"; readonly type: "bool"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; }, { readonly name: "updatePrice"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "newPrice"; readonly type: "uint256"; }]; readonly outputs: readonly []; }]; export declare const WorkflowABI: readonly [{ readonly name: "getWorkflowData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "banner"; readonly type: "string"; }, { readonly name: "workflowCardUri"; readonly type: "string"; }, { readonly name: "totalPrice"; readonly type: "uint256"; }, { readonly name: "units"; readonly type: "uint256"; }, { readonly name: "unitsMinted"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "leaseEnabled"; readonly type: "bool"; }, { readonly name: "leaseDuration"; readonly type: "uint256"; }, { readonly name: "leasePercent"; readonly type: "uint8"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "coordinatorModel"; readonly type: "string"; }, { readonly name: "hasActiveRfa"; readonly type: "bool"; }, { readonly name: "rfaId"; readonly type: "uint256"; }]; }]; }, { readonly name: "totalWorkflows"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "tokenURI"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "uri"; readonly type: "string"; }]; }, { readonly name: "getAgents"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "agentIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getAgentCount"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "count"; readonly type: "uint256"; }]; }, { readonly name: "isComplete"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "complete"; readonly type: "bool"; }]; }, { readonly name: "getCompleteWorkflows"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getWorkflowsWithRFA"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getWorkflowsByCreator"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "creator"; readonly type: "address"; }]; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "calculateTotalPrice"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "mintWorkflow"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "params"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "banner"; readonly type: "string"; }, { readonly name: "workflowCardUri"; readonly type: "string"; }, { readonly name: "units"; readonly type: "uint256"; }, { readonly name: "leaseEnabled"; readonly type: "bool"; }, { readonly name: "leaseDuration"; readonly type: "uint256"; }, { readonly name: "leasePercent"; readonly type: "uint8"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "coordinatorModel"; readonly type: "string"; }]; }, { readonly name: "agentIds"; readonly type: "uint256[]"; }]; readonly outputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; }, { readonly name: "addAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "removeAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "setCoordinator"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "model"; readonly type: "string"; }]; readonly outputs: readonly []; }, { readonly name: "updateLeaseSettings"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "enabled"; readonly type: "bool"; }, { readonly name: "duration"; readonly type: "uint256"; }, { readonly name: "percent"; readonly type: "uint8"; }]; readonly outputs: readonly []; }]; export declare const CloneABI: readonly [{ readonly name: "cloneAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "originalAgentId"; readonly type: "uint256"; }, { readonly name: "params"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "model"; readonly type: "string"; }, { readonly name: "licenses"; readonly type: "uint256"; }]; }, { readonly name: "newAgentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "clonedAgentId"; readonly type: "uint256"; }]; }, { readonly name: "canClone"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "canClone"; readonly type: "bool"; }]; }, { readonly name: "getClonesOf"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "originalAgentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "cloneIds"; readonly type: "uint256[]"; }]; }]; export declare const WarpABI: readonly [{ readonly name: "warpAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "originalAgentHash"; readonly type: "bytes32"; }, { readonly name: "originalCreator"; readonly type: "address"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; }, { readonly name: "isWarped"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "isWarped"; readonly type: "bool"; }]; }, { readonly name: "getWarpedData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "originalCreator"; readonly type: "address"; }, { readonly name: "warper"; readonly type: "address"; }, { readonly name: "originalAgentHash"; readonly type: "bytes32"; }, { readonly name: "royaltyExpiryDate"; readonly type: "uint256"; }, { readonly name: "royaltiesClaimed"; readonly type: "bool"; }, { readonly name: "accumulatedRoyalties"; readonly type: "uint256"; }]; }]; }, { readonly name: "totalWarped"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "getWarpedAgentId"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "externalHash"; readonly type: "bytes32"; }]; readonly outputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; }]; export declare const RFAABI: readonly [{ readonly name: "createRFA"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "requiredSkills"; readonly type: "bytes32[]"; }, { readonly name: "offerAmount"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; }, { readonly name: "submitAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "acceptAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "cancelRFA"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "getRFAData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "requiredSkills"; readonly type: "bytes32[]"; }, { readonly name: "offerAmount"; readonly type: "uint256"; }, { readonly name: "publisher"; readonly type: "address"; }, { readonly name: "createdAt"; readonly type: "uint256"; }, { readonly name: "status"; readonly type: "uint8"; }, { readonly name: "fulfilledByAgentId"; readonly type: "uint256"; }, { readonly name: "agentCreator"; readonly type: "address"; }]; }]; }, { readonly name: "getOpenRFAs"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getSubmissions"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "submissions"; readonly type: "tuple[]"; readonly components: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "submittedAt"; readonly type: "uint256"; }]; }]; }, { readonly name: "getRFAsForWorkflow"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getRFAsByPublisher"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "publisher"; readonly type: "address"; }]; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }]; export declare const ManowarEvmABIs: { readonly AgentFactory: readonly [{ readonly name: "getAgentData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensesMinted"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "creatorFee"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "cloneable"; readonly type: "bool"; }, { readonly name: "isClone"; readonly type: "bool"; }, { readonly name: "parentAgentId"; readonly type: "uint256"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; }]; }, { readonly name: "totalAgents"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "hasAvailableLicenses"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "available"; readonly type: "bool"; }]; }, { readonly name: "getDnaHash"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }]; }, { readonly name: "ownerOf"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "owner"; readonly type: "address"; }]; }, { readonly name: "tokenURI"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "uri"; readonly type: "string"; }]; }, { readonly name: "isLicensedTo"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "workflowContract"; readonly type: "address"; }, { readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "licensed"; readonly type: "bool"; }]; }, { readonly name: "getLicenseRecords"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "records"; readonly type: "tuple[]"; readonly components: readonly [{ readonly name: "workflowContract"; readonly type: "address"; }, { readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "licensedAt"; readonly type: "uint256"; }]; }]; }, { readonly name: "agentExists"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "exists"; readonly type: "bool"; }]; }, { readonly name: "mintAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "dnaHash"; readonly type: "bytes32"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "creatorFee"; readonly type: "uint256"; }, { readonly name: "cloneable"; readonly type: "bool"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; }, { readonly name: "updatePrice"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "newPrice"; readonly type: "uint256"; }]; readonly outputs: readonly []; }]; readonly Workflow: readonly [{ readonly name: "getWorkflowData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "banner"; readonly type: "string"; }, { readonly name: "workflowCardUri"; readonly type: "string"; }, { readonly name: "totalPrice"; readonly type: "uint256"; }, { readonly name: "units"; readonly type: "uint256"; }, { readonly name: "unitsMinted"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "leaseEnabled"; readonly type: "bool"; }, { readonly name: "leaseDuration"; readonly type: "uint256"; }, { readonly name: "leasePercent"; readonly type: "uint8"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "coordinatorModel"; readonly type: "string"; }, { readonly name: "hasActiveRfa"; readonly type: "bool"; }, { readonly name: "rfaId"; readonly type: "uint256"; }]; }]; }, { readonly name: "totalWorkflows"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "tokenURI"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "tokenId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "uri"; readonly type: "string"; }]; }, { readonly name: "getAgents"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "agentIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getAgentCount"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "count"; readonly type: "uint256"; }]; }, { readonly name: "isComplete"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "complete"; readonly type: "bool"; }]; }, { readonly name: "getCompleteWorkflows"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getWorkflowsWithRFA"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getWorkflowsByCreator"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "creator"; readonly type: "address"; }]; readonly outputs: readonly [{ readonly name: "workflowIds"; readonly type: "uint256[]"; }]; }, { readonly name: "calculateTotalPrice"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "mintWorkflow"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "params"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "banner"; readonly type: "string"; }, { readonly name: "workflowCardUri"; readonly type: "string"; }, { readonly name: "units"; readonly type: "uint256"; }, { readonly name: "leaseEnabled"; readonly type: "bool"; }, { readonly name: "leaseDuration"; readonly type: "uint256"; }, { readonly name: "leasePercent"; readonly type: "uint8"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "coordinatorModel"; readonly type: "string"; }]; }, { readonly name: "agentIds"; readonly type: "uint256[]"; }]; readonly outputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; }, { readonly name: "addAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "removeAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "setCoordinator"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "hasCoordinator"; readonly type: "bool"; }, { readonly name: "model"; readonly type: "string"; }]; readonly outputs: readonly []; }, { readonly name: "updateLeaseSettings"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "enabled"; readonly type: "bool"; }, { readonly name: "duration"; readonly type: "uint256"; }, { readonly name: "percent"; readonly type: "uint8"; }]; readonly outputs: readonly []; }]; readonly Clone: readonly [{ readonly name: "cloneAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "originalAgentId"; readonly type: "uint256"; }, { readonly name: "params"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "chainId"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "model"; readonly type: "string"; }, { readonly name: "licenses"; readonly type: "uint256"; }]; }, { readonly name: "newAgentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "clonedAgentId"; readonly type: "uint256"; }]; }, { readonly name: "canClone"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "canClone"; readonly type: "bool"; }]; }, { readonly name: "getClonesOf"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "originalAgentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "cloneIds"; readonly type: "uint256[]"; }]; }]; readonly Warp: readonly [{ readonly name: "warpAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "originalAgentHash"; readonly type: "bytes32"; }, { readonly name: "originalCreator"; readonly type: "address"; }, { readonly name: "licenses"; readonly type: "uint256"; }, { readonly name: "licensePrice"; readonly type: "uint256"; }, { readonly name: "agentCardUri"; readonly type: "string"; }]; readonly outputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; }, { readonly name: "isWarped"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "isWarped"; readonly type: "bool"; }]; }, { readonly name: "getWarpedData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "originalCreator"; readonly type: "address"; }, { readonly name: "warper"; readonly type: "address"; }, { readonly name: "originalAgentHash"; readonly type: "bytes32"; }, { readonly name: "royaltyExpiryDate"; readonly type: "uint256"; }, { readonly name: "royaltiesClaimed"; readonly type: "bool"; }, { readonly name: "accumulatedRoyalties"; readonly type: "uint256"; }]; }]; }, { readonly name: "totalWarped"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "total"; readonly type: "uint256"; }]; }, { readonly name: "getWarpedAgentId"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "externalHash"; readonly type: "bytes32"; }]; readonly outputs: readonly [{ readonly name: "warpedAgentId"; readonly type: "uint256"; }]; }]; readonly RFA: readonly [{ readonly name: "createRFA"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "requiredSkills"; readonly type: "bytes32[]"; }, { readonly name: "offerAmount"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; }, { readonly name: "submitAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "acceptAgent"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }, { readonly name: "agentId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "cancelRFA"; readonly type: "function"; readonly stateMutability: "nonpayable"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly []; }, { readonly name: "getRFAData"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "data"; readonly type: "tuple"; readonly components: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }, { readonly name: "title"; readonly type: "string"; }, { readonly name: "description"; readonly type: "string"; }, { readonly name: "requiredSkills"; readonly type: "bytes32[]"; }, { readonly name: "offerAmount"; readonly type: "uint256"; }, { readonly name: "publisher"; readonly type: "address"; }, { readonly name: "createdAt"; readonly type: "uint256"; }, { readonly name: "status"; readonly type: "uint8"; }, { readonly name: "fulfilledByAgentId"; readonly type: "uint256"; }, { readonly name: "agentCreator"; readonly type: "address"; }]; }]; }, { readonly name: "getOpenRFAs"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly []; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getSubmissions"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "rfaId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "submissions"; readonly type: "tuple[]"; readonly components: readonly [{ readonly name: "agentId"; readonly type: "uint256"; }, { readonly name: "creator"; readonly type: "address"; }, { readonly name: "submittedAt"; readonly type: "uint256"; }]; }]; }, { readonly name: "getRFAsForWorkflow"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "workflowId"; readonly type: "uint256"; }]; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }, { readonly name: "getRFAsByPublisher"; readonly type: "function"; readonly stateMutability: "view"; readonly inputs: readonly [{ readonly name: "publisher"; readonly type: "address"; }]; readonly outputs: readonly [{ readonly name: "rfaIds"; readonly type: "uint256[]"; }]; }]; }; export interface EvmMintAgentArgs { readonly dnaHash: Hex; readonly licenses: bigint; readonly licensePrice: bigint; readonly creatorFee?: bigint | number; readonly cloneable: boolean; readonly agentCardUri: string; } export interface EvmWarpAgentArgs { readonly originalAgentHash: Hex; readonly originalCreator: EvmAddress; readonly licenses: bigint; readonly licensePrice: bigint; readonly agentCardUri: string; } export interface EvmMintWorkflowArgs { readonly params: { readonly title: string; readonly description: string; readonly banner: string; readonly workflowCardUri: string; readonly units: bigint; readonly leaseEnabled: boolean; readonly leaseDuration: bigint; readonly leasePercent: number; readonly hasCoordinator: boolean; readonly coordinatorModel: string; }; readonly agentIds: readonly bigint[]; } export declare function buildEvmMintAgentOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmMintAgentArgs): ManowarEvmOperation; export declare function buildEvmWarpAgentOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmWarpAgentArgs): ManowarEvmOperation; export declare function buildEvmMintWorkflowOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmMintWorkflowArgs): ManowarEvmOperation; export declare function buildEvmCreateRfaOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: { workflowId: bigint; title: string; description: string; requiredSkills: readonly Hex[]; offerAmount: bigint; }): ManowarEvmOperation; export interface IdentityRegistryAccount { readonly version: number; readonly admin: string; readonly nextAgentId: bigint; readonly totalAgents: bigint; readonly consumers: readonly string[]; } export interface AgentAccount { readonly version: number; readonly agentId: bigint; readonly owner: string; readonly creator: string; readonly dnaHash: Uint8Array; readonly licenses: bigint; readonly licensesMinted: bigint; readonly licensePrice: bigint; readonly creatorFee: bigint; readonly cloneable: boolean; readonly isClone: boolean; readonly parentAgentId: bigint; readonly agentWallet: string; readonly uri: string; } export interface U64IndexAccount { readonly version: number; readonly page: number; readonly total: bigint; readonly values: readonly bigint[]; } export interface PubkeyIndexAccount { readonly version: number; readonly page: number; readonly total: bigint; readonly values: readonly string[]; } export interface MarketRegistryAccount { readonly version: number; readonly admin: string; readonly treasuryToken: string; readonly paymentMint: string; readonly nextWorkflowId: bigint; readonly nextRfaId: bigint; readonly nextLeaseId: bigint; readonly totalWorkflows: bigint; readonly totalEscrowed: bigint; } export interface WorkflowAccount { readonly version: number; readonly workflowId: bigint; readonly owner: string; readonly creator: string; readonly title: string; readonly description: string; readonly banner: string; readonly uri: string; readonly totalPrice: bigint; readonly units: bigint; readonly unitsMinted: bigint; readonly leaseEnabled: boolean; readonly leaseDuration: bigint; readonly leasePercent: number; readonly hasCoordinator: boolean; readonly coordinatorModel: string; readonly hasActiveRfa: boolean; readonly rfaId: bigint; readonly activeLeaseId: bigint; readonly agents: readonly bigint[]; } export type RfaStatus = "open" | "fulfilled" | "cancelled"; export interface RfaAccount { readonly version: number; readonly rfaId: bigint; readonly workflowId: bigint; readonly title: string; readonly description: string; readonly requiredSkills: readonly Uint8Array[]; readonly offerAmount: bigint; readonly publisher: string; readonly createdAt: bigint; readonly status: RfaStatus; readonly fulfilledByAgentId: bigint; readonly agentCreator: string; } export interface SubmissionAccount { readonly version: number; readonly rfaId: bigint; readonly agentId: bigint; readonly creator: string; readonly submittedAt: bigint; } export interface ReputationRegistryAccount { readonly version: number; readonly admin: string; readonly identityRegistry: string; } export interface FeedbackAccount { readonly version: number; readonly agentId: bigint; readonly client: string; readonly feedbackIndex: bigint; readonly value: bigint; readonly valueDecimals: number; readonly isRevoked: boolean; readonly tag1: string; readonly tag2: string; readonly endpoint: string; readonly feedbackUri: string; readonly feedbackHash: Uint8Array; readonly createdAt: bigint; } export interface ValidationRegistryAccount { readonly version: number; readonly admin: string; readonly nextRequestId: bigint; readonly totalRequests: bigint; } export interface ValidationRequestAccount { readonly version: number; readonly requestId: bigint; readonly agentId: bigint; readonly requester: string; readonly validatorType: string; readonly taskHash: Uint8Array; readonly requestUri: string; readonly timestamp: bigint; readonly closed: boolean; readonly responseCount: bigint; } export declare function decodeLengthPrefixedAccount(data: Uint8Array | ArrayBuffer): Uint8Array; export declare function decodeIdentityRegistryAccount(data: Uint8Array | ArrayBuffer): IdentityRegistryAccount; export declare function decodeAgentAccount(data: Uint8Array | ArrayBuffer): AgentAccount; export declare function decodeU64IndexAccount(data: Uint8Array | ArrayBuffer): U64IndexAccount; export declare function decodePubkeyIndexAccount(data: Uint8Array | ArrayBuffer): PubkeyIndexAccount; export declare function decodeMarketRegistryAccount(data: Uint8Array | ArrayBuffer): MarketRegistryAccount; export declare function decodeWorkflowAccount(data: Uint8Array | ArrayBuffer): WorkflowAccount; export declare function decodeRfaAccount(data: Uint8Array | ArrayBuffer): RfaAccount; export declare function decodeSubmissionAccount(data: Uint8Array | ArrayBuffer): SubmissionAccount; export declare function decodeReputationRegistryAccount(data: Uint8Array | ArrayBuffer): ReputationRegistryAccount; export declare function decodeFeedbackAccount(data: Uint8Array | ArrayBuffer): FeedbackAccount; export declare function decodeValidationRegistryAccount(data: Uint8Array | ArrayBuffer): ValidationRegistryAccount; export declare function decodeValidationRequestAccount(data: Uint8Array | ArrayBuffer): ValidationRequestAccount; export declare const ManowarSeeds: { readonly REGISTRY: "registry"; readonly AGENT: "agent"; readonly DNA: "dna"; readonly WARP: "warp"; readonly FEEDBACK: "feedback"; readonly FEEDBACK_INDEX: "feedback-index"; readonly RESPONSE: "response"; readonly REQUEST: "request"; readonly WORKFLOW: "workflow"; readonly LICENSE_INDEX: "license-index"; readonly LICENSE_RECORD: "license-record"; readonly RFA: "rfa"; readonly RFA_INDEX: "rfa-index"; readonly OPEN_RFA_INDEX: "open-rfa-index"; readonly PUBLISHER_RFA_INDEX: "publisher-rfa-index"; readonly SUBMISSION: "submission"; readonly SUBMISSION_INDEX: "submission-index"; readonly LEASE: "lease"; readonly LEASE_INDEX: "lease-index"; readonly ACTIVE_LEASE: "active-lease"; readonly ROYALTY: "royalty"; readonly DEFAULT_ROYALTY: "default-royalty"; readonly CLONE_INDEX: "clone-index"; readonly IDENTITY_STATS: "identity-stats"; readonly WARP_AGENT: "warp-agent"; readonly CREATOR_WORKFLOW_INDEX: "creator-workflow-index"; readonly COMPLETE_WORKFLOW_INDEX: "complete-workflow-index"; readonly RFA_WORKFLOW_INDEX: "rfa-workflow-index"; readonly MARKET_AUTHORITY: "market-authority"; readonly MARKET_CONFIG: "market-config"; readonly REPUTATION_REGISTRY: "reputation-registry"; readonly FEEDBACK_CLIENT_INDEX: "feedback-client-index"; readonly RESPONSE_COUNTER: "response-counter"; readonly VALIDATION_AGENT_INDEX: "validation-agent-index"; readonly VALIDATION_RESPONSE_INDEX: "validation-response-index"; }; export declare function u64Seed(value: bigint | number): Uint8Array; export declare function bytes32FromHex(hex: Hex): Uint8Array; export declare function hexFromBytes32(bytes: Uint8Array): Hex; export declare function findManowarPda(programId: string, seeds: readonly Uint8Array[]): Promise; export declare const identityPdas: { registry: (programId: string) => Promise; agent: (programId: string, agentId: bigint | number) => Promise; dna: (programId: string, dnaHash: Uint8Array) => Promise; cloneIndex: (programId: string, agentId: bigint | number) => Promise; stats: (programId: string) => Promise; warp: (programId: string, originalHash: Uint8Array) => Promise; warpAgent: (programId: string, agentId: bigint | number) => Promise; licenseIndex: (programId: string, agentId: bigint | number) => Promise; licenseRecord: (programId: string, agentId: bigint | number, workflowProgram: string, workflowId: bigint | number) => Promise; }; export declare const marketPdas: { registry: (programId: string) => Promise; config: (programId: string) => Promise; authority: (programId: string) => Promise; workflow: (programId: string, workflowId: bigint | number) => Promise; creatorWorkflowIndex: (programId: string, creator: string) => Promise; completeWorkflowIndex: (programId: string) => Promise; openRfaIndex: (programId: string) => Promise; rfaWorkflowIndex: (programId: string) => Promise; workflowRfaIndex: (programId: string, workflowId: bigint | number) => Promise; publisherRfaIndex: (programId: string, publisher: string) => Promise; rfa: (programId: string, rfaId: bigint | number) => Promise; submission: (programId: string, rfaId: bigint | number, agentId: bigint | number) => Promise; submissionIndex: (programId: string, rfaId: bigint | number) => Promise; lease: (programId: string, leaseId: bigint | number) => Promise; leaseIndex: (programId: string, leaser: string) => Promise; activeLease: (programId: string, workflowId: bigint | number) => Promise; royalty: (programId: string, tokenId: bigint | number) => Promise; defaultRoyalty: (programId: string) => Promise; }; export declare const reputationPdas: { registry: (programId: string) => Promise; feedbackClientIndex: (programId: string, agentId: bigint | number) => Promise; feedbackIndex: (programId: string, agentId: bigint | number, client: string) => Promise; feedback: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number) => Promise; responseCounter: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number, responder: string) => Promise; }; export declare const validationPdas: { registry: (programId: string) => Promise; request: (programId: string, requestId: bigint | number) => Promise; requestIndex: (programId: string, agentId: bigint | number) => Promise; response: (programId: string, requestId: bigint | number, responseId: bigint | number) => Promise; responseIndex: (programId: string, requestId: bigint | number) => Promise; }; export declare function encodeIdentityInstruction(instruction: { readonly type: "initialize"; } | { readonly type: "mint"; readonly dnaHash: Uint8Array; readonly licenses: bigint | number; readonly licensePrice: bigint | number; readonly creatorFee: bigint | number; readonly cloneable: boolean; readonly uri: string; } | { readonly type: "warp"; readonly originalHash: Uint8Array; readonly originalCreator: string; readonly licenses: bigint | number; readonly licensePrice: bigint | number; readonly uri: string; } | { readonly type: "consumeLicense" | "revokeLicense"; readonly agentId: bigint | number; readonly workflow: string; readonly workflowId: bigint | number; }): Uint8Array; export declare function buildIdentityMintInstruction(input: { readonly programId: string; readonly nextAgentId: bigint | number; readonly owner: string; readonly rentPayer: string; readonly dnaHash: Uint8Array; readonly licenses: bigint | number; readonly licensePrice: bigint | number; readonly creatorFee?: bigint | number; readonly cloneable: boolean; readonly uri: string; }): Promise<{ instruction: Instruction; agent: SolanaAddress; dna: SolanaAddress; }>; export declare function buildIdentityWarpInstruction(input: { readonly programId: string; readonly nextAgentId: bigint | number; readonly warper: string; readonly rentPayer: string; readonly originalHash: Uint8Array; readonly originalCreator: string; readonly licenses: bigint | number; readonly licensePrice: bigint | number; readonly uri: string; }): Promise<{ instruction: Instruction; agent: SolanaAddress; dna: SolanaAddress; warp: SolanaAddress; warpAgent: SolanaAddress; }>; export declare function encodeMarketInstruction(instruction: { readonly type: "mintWorkflow"; readonly title: string; readonly description: string; readonly banner: string; readonly uri: string; readonly units: bigint | number; readonly leaseEnabled: boolean; readonly leaseDuration: bigint | number; readonly leasePercent: number; readonly hasCoordinator: boolean; readonly coordinatorModel: string; } | { readonly type: "createRfa"; readonly workflowId: bigint | number; readonly title: string; readonly description: string; readonly requiredSkills: readonly Uint8Array[]; readonly offerAmount: bigint | number; } | { readonly type: "submitAgent" | "acceptAgent"; readonly rfaId: bigint | number; readonly agentId: bigint | number; } | { readonly type: "cancelRfa"; readonly rfaId: bigint | number; }): Uint8Array; export declare function buildMarketMintWorkflowInstruction(input: { readonly marketProgramId: string; readonly identityProgramId: string; readonly nextWorkflowId: bigint | number; readonly owner: string; readonly rentPayer: string; readonly tokenProgram: string; readonly payerToken: string; readonly treasuryToken: string; readonly title: string; readonly description: string; readonly banner: string; readonly uri: string; readonly units: bigint | number; readonly leaseEnabled: boolean; readonly leaseDuration: bigint | number; readonly leasePercent: number; readonly hasCoordinator: boolean; readonly coordinatorModel: string; readonly agents?: readonly { agentId: bigint | number; creatorToken: string; }[]; }): Promise<{ instruction: Instruction; workflow: SolanaAddress; }>; export declare function buildMarketCreateRfaInstruction(input: { readonly marketProgramId: string; readonly nextRfaId: bigint | number; readonly workflowId: bigint | number; readonly publisher: string; readonly rentPayer: string; readonly tokenProgram: string; readonly publisherToken: string; readonly escrowToken: string; readonly title: string; readonly description: string; readonly requiredSkills: readonly Uint8Array[]; readonly offerAmount: bigint | number; }): Promise<{ instruction: Instruction; rfa: SolanaAddress; }>; export declare function computeDnaHash(skills: readonly string[], networkOrChain: NetworkId | number, model: string): Hex; export declare function computeExternalAgentHash(registry: string, agentAddress: string): Hex; export declare function encodeSkillAsBytes32(skill: string): Hex; export declare function createManowarBlockchainClient(input: CreateManowarBlockchainClientInput): { network: NetworkId; deployment: ManowarDeploymentConfig; evm: { mintAgent: (args: EvmMintAgentArgs) => ManowarEvmOperation; warpAgent: (args: EvmWarpAgentArgs) => ManowarEvmOperation; mintWorkflow: (args: EvmMintWorkflowArgs) => ManowarEvmOperation; createRfa: (args: Parameters[2]) => ManowarEvmOperation; }; solana: { pdas: { identity: { registry: (programId: string) => Promise; agent: (programId: string, agentId: bigint | number) => Promise; dna: (programId: string, dnaHash: Uint8Array) => Promise; cloneIndex: (programId: string, agentId: bigint | number) => Promise; stats: (programId: string) => Promise; warp: (programId: string, originalHash: Uint8Array) => Promise; warpAgent: (programId: string, agentId: bigint | number) => Promise; licenseIndex: (programId: string, agentId: bigint | number) => Promise; licenseRecord: (programId: string, agentId: bigint | number, workflowProgram: string, workflowId: bigint | number) => Promise; }; market: { registry: (programId: string) => Promise; config: (programId: string) => Promise; authority: (programId: string) => Promise; workflow: (programId: string, workflowId: bigint | number) => Promise; creatorWorkflowIndex: (programId: string, creator: string) => Promise; completeWorkflowIndex: (programId: string) => Promise; openRfaIndex: (programId: string) => Promise; rfaWorkflowIndex: (programId: string) => Promise; workflowRfaIndex: (programId: string, workflowId: bigint | number) => Promise; publisherRfaIndex: (programId: string, publisher: string) => Promise; rfa: (programId: string, rfaId: bigint | number) => Promise; submission: (programId: string, rfaId: bigint | number, agentId: bigint | number) => Promise; submissionIndex: (programId: string, rfaId: bigint | number) => Promise; lease: (programId: string, leaseId: bigint | number) => Promise; leaseIndex: (programId: string, leaser: string) => Promise; activeLease: (programId: string, workflowId: bigint | number) => Promise; royalty: (programId: string, tokenId: bigint | number) => Promise; defaultRoyalty: (programId: string) => Promise; }; reputation: { registry: (programId: string) => Promise; feedbackClientIndex: (programId: string, agentId: bigint | number) => Promise; feedbackIndex: (programId: string, agentId: bigint | number, client: string) => Promise; feedback: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number) => Promise; responseCounter: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number, responder: string) => Promise; }; validation: { registry: (programId: string) => Promise; request: (programId: string, requestId: bigint | number) => Promise; requestIndex: (programId: string, agentId: bigint | number) => Promise; response: (programId: string, requestId: bigint | number, responseId: bigint | number) => Promise; responseIndex: (programId: string, requestId: bigint | number) => Promise; }; }; identity: { mint: (args: Omit[0], "programId">) => Promise<{ instruction: Instruction; agent: SolanaAddress; dna: SolanaAddress; }>; warp: (args: Omit[0], "programId">) => Promise<{ instruction: Instruction; agent: SolanaAddress; dna: SolanaAddress; warp: SolanaAddress; warpAgent: SolanaAddress; }>; }; market: { mintWorkflow: (args: Omit[0], "marketProgramId" | "identityProgramId">) => Promise<{ instruction: Instruction; workflow: SolanaAddress; }>; createRfa: (args: Omit[0], "marketProgramId">) => Promise<{ instruction: Instruction; rfa: SolanaAddress; }>; }; } | null; }; //# sourceMappingURL=index.d.ts.map