import crypto from 'node:crypto';
import type { WorkspaceState } from '../utils/workspaceState';
import { type IDiscoveryProtocol } from './types';
export interface AnnounceSigner {
    kid: string;
    privateKey: crypto.KeyObject;
}
export declare const canonicalBytes: (t: 'ANNOUNCE' | 'RESPONSE', d: unknown, ts: number) => Buffer;
export declare const signEnvelope: (signer: AnnounceSigner | null, t: 'ANNOUNCE' | 'RESPONSE', d: IDiscoveryProtocol['d']) => IDiscoveryProtocol | null;
export declare const buildAnnounceSigner: (workspaceState: WorkspaceState) => AnnounceSigner | null;
