import { KeyType } from "./types.js";
export declare const EDWARDS_DID_PREFIX: Uint8Array;
export declare const BLS_DID_PREFIX: Uint8Array;
export declare const RSA_DID_PREFIX: Uint8Array;
export declare const BASE58_DID_PREFIX = "did:key:z";
/**
 * Magic bytes.
 */
export declare function magicBytes(keyType: KeyType): Uint8Array | null;
/**
 * Parse magic bytes on prefixed key-buffer
 * to determine cryptosystem & the unprefixed key-buffer.
 */
export declare const parseMagicBytes: (prefixedKey: Uint8Array) => {
    keyBuffer: Uint8Array;
    type: KeyType;
};
/**
 * Determines if an ArrayBuffer has a given indeterminate length-prefix.
 */
export declare const hasPrefix: (prefixedKey: ArrayBuffer, prefix: ArrayBuffer) => boolean;
export declare const toKeyType: (str: string) => KeyType;
