import { type ScriptType } from '@scure/btc-signer'; import { type HashedTree } from '@scure/btc-signer/payment.js'; import type { TapLeaf, TapTree } from '../consts/Types'; import type { MusigKeyAgg } from '../musig/Musig'; export declare const TAP_LEAF_VERSION_LIQUID = 196; /** * Convert a public key to x-only format (32 bytes) * If the key is already 32 bytes, return as-is * If the key is 33 bytes, strip the first byte * * @param pubKey - The public key as Uint8Array * @returns The x-only public key (32 bytes) */ export declare const toXOnly: (pubKey: Uint8Array) => Uint8Array; export declare const swapLeafsToTree: (claimLeaf: TapLeaf, refundLeaf: TapLeaf) => TapTree; export declare const createControlBlock: (hashTree: HashedTree, leaf: TapLeaf, internalKey: Uint8Array) => Uint8Array; export declare const createLeaf: (isLiquid: boolean, script: ScriptType) => TapLeaf; export declare const tweakMusig: (musig: MusigKeyAgg, tree: TapTree) => MusigKeyAgg; export declare const taprootHashTree: (tree: TapTree) => HashedTree; //# sourceMappingURL=TaprootUtils.d.ts.map