import type { SchemaInput } from "computed-types"; import { Endpoint } from "./endpoints"; import { zLoginReq, zGuestReq, zRegisterReq } from "../api"; import Authentication from "./Authentication"; export declare type AccountCredentials = SchemaInput; export declare type GuestCredentials = SchemaInput; export declare type Credentials = AccountCredentials | GuestCredentials; /** * Authenticates a user to Smiley Face Game. * @param payload The credentials to use when authenticating. * @param endpoint An optional custom endpoint to use during authentication. * @returns {Promise} A promise that resolves to an object that can be used to interface with SFG. */ export declare function auth(payload: Credentials, endpoint?: Endpoint): Promise; /** * Registers an account for Smiley Face Game. * @param payload The payload to pass to the authentication endpoint. * @param endpoint An optional custom endpoint to use during authentication. * @returns {Promise} A promise that resolves to an object that can be used to interface with SFG. */ export declare function register(payload: SchemaInput, endpoint?: Endpoint): Promise;