import { AddressType } from './address';
/**
 * Base 58 Check
 */
export declare const encodeBase58Check: (data: Uint8Array) => string;
export declare const decodeBase58Check: (str: string) => Uint8Array;
type NetworkType = 'mainnet' | 'testnet';
export interface DecodedLegacyAddress {
    type: AddressType;
    hash: string;
    network: NetworkType;
}
interface NetworkVersionBytes {
    p2pkh: number;
    p2sh: number;
}
interface VersionByteReference {
    legacy: {
        mainnet: NetworkVersionBytes;
        testnet: NetworkVersionBytes;
    };
}
export declare const LEGACY_VERSION_BYTES: VersionByteReference;
export declare const decodeLegacyAddress: (address: string) => DecodedLegacyAddress;
/**
 * Encode a legacy address given type and hash
 * For now, this is a stub method that supports only BTC p2pkh and p2sh
 */
export declare const encodeLegacyAddress: (hash: Uint8Array, type: "p2pkh" | "p2sh", network?: NetworkType) => string;
export {};
//# sourceMappingURL=legacyaddr.d.ts.map