import { Observable } from 'rxjs';
import * as GQL from '../../backend/graphqlschema';
interface UpdateUserOptions {
    username: string | null;
    /** The user's display name */
    displayName: string | null;
    /** The user's avatar URL */
    avatarURL: string | null;
}
/**
 * Sends a GraphQL mutation to update a user's profile
 */
export declare function updateUser(user: GQL.ID, args: UpdateUserOptions): Observable<void>;
export declare function updatePassword(args: {
    oldPassword: string;
    newPassword: string;
}): Observable<void>;
/**
 * Set the verification state for a user email address.
 *
 * @param user the user's GraphQL ID
 * @param email the email address to edit
 * @param verified the new verification state for the user email
 */
export declare function setUserEmailVerified(user: GQL.ID, email: string, verified: boolean): Observable<void>;
/**
 * Log a user action (used to allow site admins on a Sourcegraph instance
 * to see a count of unique users on a daily, weekly, and monthly basis).
 *
 * Not used at all for public/sourcegraph.com usage.
 */
export declare function logUserEvent(event: GQL.UserEvent): void;
export {};
//# sourceMappingURL=backend.d.ts.map