import { type InvalidSerializedTransactionTypeErrorType } from '../../errors/transaction.js'; import type { ErrorType } from '../../errors/utils.js'; import type { Hex } from '../../index.js'; import type { TransactionSerialized, TransactionSerializedEIP1559, TransactionSerializedEIP2930, TransactionSerializedEIP4844, TransactionSerializedGeneric, TransactionSerializedLegacy, TransactionType } from '../../types/transaction.js'; import type { IsNarrowable, IsNever } from '../../types/utils.js'; import { type SliceHexErrorType } from '../data/slice.js'; import { type HexToNumberErrorType } from '../encoding/fromHex.js'; export type GetSerializedTransactionType = IsNarrowable extends true ? IsNever extends false ? result : 'legacy' : TransactionType; export type GetSerializedTransactionTypeErrorType = HexToNumberErrorType | InvalidSerializedTransactionTypeErrorType | SliceHexErrorType | ErrorType; export declare function getSerializedTransactionType(serializedTransaction: serializedTransaction): GetSerializedTransactionType; //# sourceMappingURL=getSerializedTransactionType.d.ts.map