import { type ConcatHexErrorType } from '../../../core/internal/data/concat.js'; import { type HexToBytesErrorType } from '../../../core/internal/encoding/toBytes.js'; import { type ToHexErrorType } from '../../../core/internal/encoding/toHex.js'; import { type ToRlpErrorType } from '../../../core/internal/encoding/toRlp.js'; import type { ErrorType } from '../../../core/internal/errors/utils.js'; import { type Keccak256ErrorType } from '../../../core/internal/hash/keccak256.js'; import type { BigIntegerish, Bytes, Hex, Integerish } from '../../../core/internal/types/data.js'; import type { Authorization } from '../types/authorization.js'; type To = 'hex' | 'bytes'; export type HashAuthorizationParameters = Authorization & { /** Output format. @default "hex" */ to?: to | To | undefined; }; export type HashAuthorizationReturnType = (to extends 'bytes' ? Bytes : never) | (to extends 'hex' ? Hex : never); export type HashAuthorizationErrorType = Keccak256ErrorType | ConcatHexErrorType | ToRlpErrorType | ToHexErrorType | HexToBytesErrorType | ErrorType; /** * Computes an Authorization hash in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`. */ export declare function hashAuthorization(parameters: HashAuthorizationParameters): HashAuthorizationReturnType; export {}; //# sourceMappingURL=hashAuthorization.d.ts.map