import type { UserProfiler } from '@machinat/core/base/Profiler'; import BotP from './Bot'; import type MessengerUser from './User'; import MessengerUserProfile from './UserProfile'; declare type ProfilerOptions = { optionalProfileFields?: ('locale' | 'timezone' | 'gender')[]; }; /** * MessengerProfiler fetch user profile from Messenger platform. * @category Provider */ export declare class MessengerProfiler implements UserProfiler { bot: BotP; profileFields: string; constructor(bot: BotP, { optionalProfileFields }?: ProfilerOptions); getUserProfile(user: MessengerUser): Promise; } declare const ProfilerP: import("@machinat/core/service").ServiceProvider & typeof MessengerProfiler; declare type ProfilerP = MessengerProfiler; export default ProfilerP;