/**
 * Nexus Prime - NexusNet Relay
 *
 * MVP Cross-machine knowledge federation using a shared GitHub Gist as a pub/sub mechanism.
 * Note: Requires `GITHUB_TOKEN` and `NEXUSNET_GIST_ID` environment variables.
 *
 * Phase: 8G (NexusNet Relay)
 */
export interface NexusNetMessage {
    id: string;
    type: 'knowledge' | 'skill' | 'query' | 'response';
    sourceId: string;
    payload: {
        content: string;
        tags: string[];
        confidence?: number;
    };
    timestamp: number;
    ttl: number;
}
export interface NexusNetRelayStatus {
    configured: boolean;
    mode: 'live' | 'degraded';
    gistId?: string;
    lastError?: string;
    lastSyncAt?: number;
    lastPublishAt?: number;
}
export declare class NexusNetRelay {
    private readonly sourceId;
    private lastError?;
    private lastSyncAt?;
    private lastPublishAt?;
    constructor();
    private getConfig;
    getStatus(): NexusNetRelayStatus;
    /**
     * Publish a message to the shared Gist network.
     */
    publish(type: NexusNetMessage['type'], payload: NexusNetMessage['payload'], ttl?: number): Promise<{
        id: string;
        bytes: number;
        configured: boolean;
        mode: NexusNetRelayStatus['mode'];
    }>;
    /**
     * Sync messages from the shared Gist network.
     */
    sync(): Promise<NexusNetMessage[]>;
}
export declare const nexusNetRelay: NexusNetRelay;
