import { Address, type Hex } from 'viem'; import { GauntletClient } from '../client'; import { TxStep } from '../evm/adapters/types'; export { encodeBuilderCode } from './erc8021'; export type PreparedPayloadWithAttribution = { type: string; to: Address; data: Hex; account?: Address; }; export type PreparedTx = { payload: PreparedPayloadWithAttribution; tx: TxStep; }; /** * Build the full attribution suffix to append to transaction calldata. * * PUBLIC: ERC-8021 builder code only — `0x{codesLength}{builderCode utf8}{schemaId=0x00}{ercMarker}`, or `0x` if no builderCode. * ENCODED: Requests a sourceId from the Gauntlet API with builder code as an arg and encodes that. * PRIVATE: Generates a random salt and posts it to the Gauntlet API. * */ export declare function buildAttribution(client: GauntletClient): Promise; export declare function encodeTransactionWithAttribution(client: GauntletClient, transaction: TxStep): Promise; //# sourceMappingURL=index.d.ts.map