import type { AuthCollectionSlug, LoginResult, MaybePromise, SanitizedConfig } from 'payload'; type LoginWithEmail = { collection: TSlug; config: MaybePromise; email: string; password: string; username?: never; }; type LoginWithUsername = { collection: TSlug; config: MaybePromise; email?: never; password: string; username: string; }; type LoginArgs = LoginWithEmail | LoginWithUsername; export declare function login({ collection, config, email, password, username, }: LoginArgs): Promise>; export {}; //# sourceMappingURL=login.d.ts.map