export interface ChannelKeys { pub: string; priv: string; } /** Fresh channel x25519 keypair — generated by the channel's first user. */ export declare function newChannelKeypair(): ChannelKeys; /** Channels file: { "": { "pub": "", "priv": "" } }. * Missing or invalid file = no channels. */ export declare function loadChannelKeys(file: string): Record; /** Read-modify-write: keeps the other channels; creates the parent dir * (e.g. ~/.dap) on demand. */ export declare function persistChannelKeys(file: string, name: string, keys: ChannelKeys): void;