export declare enum Status {
    ready = "ready",
    idle = "idle",
    error = "error"
}
export interface ReadySendMessage {
    status: Status.ready;
    send: (peerAddress: string, content: string) => Promise<unknown>;
}
export interface IdleSendMessage {
    status: Status.idle;
}
export interface ErrorSendMessage {
    status: Status.error;
}
export declare type SendMessage = ReadySendMessage | IdleSendMessage | ErrorSendMessage;
export declare const useSendMessage: () => SendMessage;
