import { Header } from './header';
import { Key, type Verifier, Signer } from './key';
export declare class Sign1Message {
    payload: Uint8Array;
    protected: Header | null;
    unprotected: Header | null;
    private static signBytes;
    static fromBytes(key: Key & Verifier, coseData: Uint8Array, externalData?: Uint8Array): Sign1Message;
    static withTag(coseData: Uint8Array): Uint8Array;
    constructor(payload: Uint8Array, protectedHeader?: Header, unprotected?: Header);
    toBytes(key: Key & Signer, externalData?: Uint8Array): Uint8Array;
}
