import { MediaType } from './entities.types'; export declare enum FbAccountType { FB = "FACEBOOK", INSTAGRAM = "INSTAGRAM" } export declare enum UpdateType { INSIGHTS = "INSIGHTS" } export interface FbPicture { data: { url: string; }; } interface InstagramBusinessAccount { id: string; name: string; profile_picture_url: string; username: string; } export interface SocialAccount { access_token: string; name: string; id: string; picture?: FbPicture; pictureUrl?: string; instagram_business_account?: InstagramBusinessAccount; } export interface FbUserInfoAndAccounts { name: string | null; pictureUrl: string | null; accounts: Record | null; permissions?: FbPermission[] | null; isPartner?: boolean; id?: string; } export interface FbAdsAccount { id: string; name: string; } export interface FbError { message: string; type: string; code: number; } export declare type CallBackFun = (success: boolean, postId?: string, socialPostUrl?: string) => void; export declare type GetPostURLFieldName = 'permalink_url' | 'link' | 'permalink'; export interface FbPostData { accountId: string; description: string; videoUrl?: string; mediaType: MediaType; imageUrl?: string; imageCoverTimeOffset: number; callback: CallBackFun; } export interface InstaPublishMediaData { accountId: string; containerId?: string; mediaType: MediaType; callback: CallBackFun; } export interface FbPermission { permission: string; status: string; } export interface FbAdAccountInfo { id: string; name: string; } export {};