import type { AuthOperationsFromCollectionSlug, Collection, DataFromCollectionSlug } from '../../collections/config/types.js'; import type { AuthCollectionSlug } from '../../index.js'; import type { PayloadRequest } from '../../types/index.js'; export type LoginResult = { exp?: number; token?: string; user?: DataFromCollectionSlug; }; export type Arguments = { collection: Collection; data: AuthOperationsFromCollectionSlug['login']; depth?: number; overrideAccess?: boolean; req: PayloadRequest; showHiddenFields?: boolean; }; type CheckLoginPermissionArgs = { loggingInWithUsername?: boolean; req: PayloadRequest; user: DataFromCollectionSlug; }; /** * Throws an error if the user is locked or does not exist. * This does not check the login attempts, only the lock status. Whoever increments login attempts * is responsible for locking the user properly, not whoever checks the login permission. */ export declare const checkLoginPermission: ({ loggingInWithUsername, req, user, }: CheckLoginPermissionArgs) => void; export declare const loginOperation: (incomingArgs: Arguments) => Promise>; export {}; //# sourceMappingURL=login.d.ts.map