import { CID } from 'multiformats/cid';
interface JWSSignature {
    header?: Record<string, any>;
    protected?: string;
    signature: string;
}
export interface DagJWS {
    payload: string;
    signatures: Array<JWSSignature>;
    link?: CID;
}
interface EncodedSignature {
    header?: Record<string, any>;
    protected?: Uint8Array;
    signature: Uint8Array;
}
export interface EncodedJWS {
    payload: Uint8Array;
    signatures: Array<EncodedSignature>;
}
export interface PublicKey {
    id: string;
    type: string;
    controller: string;
    publicKeyHex?: string;
    publicKeyBase64?: string;
}
declare function fromSplit(split: Array<string>): DagJWS;
declare function encode(jws: DagJWS): EncodedJWS;
declare function decode(encoded: EncodedJWS): DagJWS;
declare const _default: {
    fromSplit: typeof fromSplit;
    encode: typeof encode;
    decode: typeof decode;
};
export default _default;
