export interface CredentialsProviderConfig { id: string; name: string; type: 'credentials'; credentials: Record; authorize: (credentials: Record) => Promise<{ id: string, name?: string, email?: string } | null>; } export function Credentials(config: Omit) { return { id: 'credentials', type: 'credentials' as const, ...config }; }