import { Connection, ConnectionUpdate, UserConnectionList } from '../connection/'; import { HttpClient } from '../http/'; import { QualifiedId } from '../user'; export declare class ConnectionAPI { private readonly client; constructor(client: HttpClient); static readonly URL: { CONNECTIONS: string; }; /** * Get an existing connection to another user. * @param userId The ID of the other user * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/connection */ getConnection(userId: QualifiedId): Promise; /** * List the connections to other users. * @param limit Number of results to return (default 100, max 500) * @param connectionId The connection ID to start from * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/connections */ getConnections(connectionId?: string, limit?: number): Promise; /** * Get the list of all the connections to other users (including users that are on federated servers) * * @see https://nginz-https.anta.wire.link/api/swagger-ui/#/default/post_list_connections */ getConnectionList(): Promise; /** * Create a connection to another user. * Note: You can have no more than 1000 connections in accepted or sent state. * @param qualifiedUserId: The qualified id of the user we want to connect to * @see https://nginz-https.anta.wire.link/api/swagger-ui/#/default/post_connections__uid_domain___uid */ postConnection({ id, domain }: QualifiedId): Promise; /** * Update a connection. * Note: You can have no more than 1000 connections in accepted or sent state. * @param userId The ID of the other user (qualified or not) * @param updatedConnection: The updated connection * @see https://staging-nginz-https.zinfra.io/swagger-ui/#!/users/updateConnection */ putConnection(userId: QualifiedId, updatedConnection: ConnectionUpdate): Promise; } //# sourceMappingURL=ConnectionAPI.d.ts.map