import type { Sessions } from './schema.js'; /** * Serializes the session as a JSON and stores it in the system. * @param session - the session to store. */ export declare function store(sessions: Sessions): Promise; /** * Fetches the sessions from the local storage and returns it. * If the format of the object is invalid, the method will discard it. * @returns Returns a promise that resolves with the sessions object if it exists and is valid. */ export declare function fetch(): Promise; /** * Removes a session from the system. */ export declare function remove(): Promise; /** * Gets the session alias for a given user ID. * * @param userId - The user ID of the session to get the alias for. * @returns The alias for the session if it exists, otherwise undefined. */ export declare function getSessionAlias(userId: string): Promise; /** * Sets the alias for a given user's session and persists it. * * @param userId - The user ID of the session to update. * @param alias - The new alias to set. */ export declare function setSessionAlias(userId: string, alias: string): Promise; /** * Finds a session by its alias. * * @param alias - The alias to search for * @returns The user ID if found, otherwise undefined */ export declare function findSessionByAlias(alias: string): Promise;