import { type ToHexErrorType } from '../encoding/toHex.js'; import type { ErrorType } from '../errors/utils.js'; import type { Hex } from '../types/data.js'; import type { Signatureish } from '../types/signature.js'; import { type CompactSignatureToSignatureErrorType } from './compactSignatureToSignature.js'; import { type ParseSignatureErrorType } from './parseSignature.js'; export type ToSignatureErrorType = CompactSignatureToSignatureErrorType | ParseSignatureErrorType | ToHexErrorType | ErrorType; /** * Instantiates a typed {@link Signature} object from a {@link Signature}, {@link CompactSignature}, {@link Bytes}, or {@link Hex}. * * @example * ```ts * import { Signature } from 'viem' * const signature = Signature.from('0x...') * ``` */ export declare function toSignature(signature: Signatureish): { r: Hex; s: Hex; v: number; yParity: number; }; //# sourceMappingURL=toSignature.d.ts.map