import { type Address, type Hex } from 'viem'; import * as z from 'zod/mini'; import * as Campaigns from './Campaigns.js'; /** Zod schemas for the isolated reward signer protocol. */ export declare namespace schema { /** One typed reward operation accepted by the isolated signer. */ const Intent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ boostRewards: z.ZodMiniBoolean; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; operation: z.ZodMiniLiteral<"deploy">; targetYield: z.ZodMiniBoolean; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>, z.ZodMiniObject<{ distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; expectedRootVersion: z.ZodMiniString; operation: z.ZodMiniLiteral<"publish">; statement: z.ZodMiniCustom; }, z.core.$strict>, z.ZodMiniObject<{ batches: z.ZodMiniArray>; distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; operation: z.ZodMiniLiteral<"push">; rootVersion: z.ZodMiniString; statementHash: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>, z.ZodMiniObject<{ assets: z.ZodMiniString; distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; expectedRootVersion: z.ZodMiniString; funder: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; minEarnShares: z.ZodMiniString; operation: z.ZodMiniLiteral<"settle">; settlementId: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; statement: z.ZodMiniCustom; }, z.core.$strict>, z.ZodMiniObject<{ controller: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; funders: z.ZodMiniArray, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>; maxEarnShareSupply: z.ZodMiniString; operation: z.ZodMiniLiteral<"targetYield">; requestedAssets: z.ZodMiniArray>; }, z.core.$strict>], "operation">; /** One complete typed signing request. */ const Request: z.ZodMiniObject<{ attemptId: z.ZodMiniString; id: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; intent: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{ boostRewards: z.ZodMiniBoolean; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; operation: z.ZodMiniLiteral<"deploy">; targetYield: z.ZodMiniBoolean; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>, z.ZodMiniObject<{ distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; expectedRootVersion: z.ZodMiniString; operation: z.ZodMiniLiteral<"publish">; statement: z.ZodMiniCustom; }, z.core.$strict>, z.ZodMiniObject<{ batches: z.ZodMiniArray>; distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; operation: z.ZodMiniLiteral<"push">; rootVersion: z.ZodMiniString; statementHash: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>, z.ZodMiniObject<{ assets: z.ZodMiniString; distributor: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; expectedRootVersion: z.ZodMiniString; funder: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; minEarnShares: z.ZodMiniString; operation: z.ZodMiniLiteral<"settle">; settlementId: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; statement: z.ZodMiniCustom; }, z.core.$strict>, z.ZodMiniObject<{ controller: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; domain: z.ZodMiniObject<{ chainId: z.ZodMiniPipe, z.ZodMiniTransform<4217 | 42431, "mainnet" | "testnet">>, z.ZodMiniPipe, z.ZodMiniTransform>]>, z.ZodMiniNumber>; earnShare: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; earnVault: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; factory: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; treasury: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; funders: z.ZodMiniArray, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>>; maxEarnShareSupply: z.ZodMiniString; operation: z.ZodMiniLiteral<"targetYield">; requestedAssets: z.ZodMiniArray>; }, z.core.$strict>], "operation">; }, z.core.$strict>; /** Exact signed transaction returned before broadcast. */ const Response: z.ZodMiniObject<{ expiresAt: z.ZodMiniNullable>; nonce: z.ZodMiniNullable>; signedBytes: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, string>>; signer: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; transactionHash: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; /** Public readiness returned by the signer without exposing secrets. */ const Health: z.ZodMiniObject<{ ok: z.ZodMiniLiteral; signer: z.ZodMiniPipe, z.ZodMiniTransform<`0x${string}`, `0x${string}`>>; }, z.core.$strict>; } /** One complete typed signing request. */ export type Request = z.output; /** Exact signed transaction returned before broadcast. */ export type Response = z.output; /** Reads the isolated signer's readiness and public account. */ export declare function health(fetch: typeof globalThis.fetch): Promise>; /** Returns a deterministic id for one typed signer intent. */ export declare function id(intent: Request['intent']): Hex; /** Selects the deployed controller entrypoint for one nonempty funding set. */ export declare function targetYieldFunction(funderCount: number): 'fund' | 'fundBatchExact'; /** Requests one typed signature from the isolated signer Worker. */ export declare function sign(options: sign.Options): Promise; export declare namespace sign { /** Typed signer request transport. */ type Options = { /** Isolated signer service fetch. */ fetch: typeof globalThis.fetch; /** Complete typed request. */ request: Request; }; } /** Address fields required by one signer request. */ export type Domain = { /** Supported Tempo chain. */ chainId: number; /** Vault EarnShare. */ earnShare: Address; /** Bound EarnVault. */ earnVault: Address; /** Reviewed rewards factory. */ factory: Address; /** Immutable reward treasury, or zero when no boost distributor exists. */ treasury: Address; }; //# sourceMappingURL=Signer.d.ts.map