import type { RouteContext, SchemaWithId, TokenRecipient } from '@aeriajs/types'; import type { description } from './collections/user/description.js'; type User = SchemaWithId; export type TokenableUser = Pick; export type SuccessfulAuthentication = { user: TokenableUser; token: TokenRecipient; }; export declare const AuthenticationError: { readonly InvalidCredentials: "INVALID_CREDENTIALS"; readonly InactiveUser: "INACTIVE_USER"; }; export declare const successfulAuthentication: (user: TUser, context: RouteContext) => Promise; export declare const defaultSuccessfulAuthentication: () => Promise<{ user: { _id: null; name: string; email: string; roles: string[]; active: boolean; }; token: { type: string; content: string; }; }>; export {};