/**
 * Connections between accounts
 * @module Mates
 * @group Users
 */
import { Ref } from "vue";
export interface Mate {
    emoji: string;
    text: string;
    back?: string;
}
/**
 * Get a reactive list of the user's mates
 */
export declare function useMates(pub: string): Record<string, Mate>;
/**
 * Break the string into graphemes and return the first one if it's an emoji
 */
export declare function getFirstEmoji(text: string, def?: string): string;
/**
 * Check if the text has emojis
 */
export declare function isEmoji(text: string): boolean;
/**
 * @typedef {Object} useMate
 * @property {ref} emoji - change it in an input
 * @property {ref} isMate - reactive state of connection
 * @property {Function} toggleMate - toggle the link with current `emoji` ref
 */
/**
 * Make mates with some account by current user
 */
export declare function useMate(pub: string): {
    emoji: Ref<string>;
    isMate: Ref<string | boolean>;
    toggleMate: () => void;
};
//# sourceMappingURL=useMates.d.ts.map