/** * Vault-address parsing — single source of truth for turning the raw on-chain * `Position.vaultAddress` string into the Bitcoin address for a chain. * * The contract stores either a plain address string or a JSON object keyed by * Bitcoin network (`{"mainnet":"bc1…","testnet":"m…","regtest":"bcrt1…"}`). * Extracted from `vault-snapshot.ts` (remediation P6/#7b) so the phase-2 * signer can bind its derived PKP address to the on-chain vault address using * exactly the same parse the snapshot layer uses. */ /** * Strip a storage network prefix (`REGTEST_` / `TESTNET_` / `MAINNET_`) from a * Bitcoin address. Parity with BitcoinDataProvider's private helper. */ export declare function stripNetworkPrefix(address: string): string; /** * Parse vault address based on format and network. * * Supports two formats: * 1. Single string: "mqM3ZR2N6DzZkafSdFqxEAkWovAU3uYTAN" * 2. JSON object: {"mainnet":"bc1q...","testnet":"mqM3..."} * * @param rawVaultAddress Raw vault address from contract * @param chain Validated EVM chain (sepolia, ethereum, hardhat) * @returns Parsed Bitcoin address for the appropriate network */ export declare function parseVaultAddress(rawVaultAddress: string, chain: string): string | undefined; //# sourceMappingURL=vault-address.d.ts.map