import { RequestPropsMap } from '@vkontakte/vk-bridge'; import { ApiResponse, UrlConfigType } from '@ktsstudio/mediaproject-utils'; import { VkResponseType } from './common'; import { CallVkApiResponseType } from './callVkApi'; declare type ShareVkPostPropsType = RequestPropsMap['VKWebAppShowWallPostBox'] & { link_image?: string; link_button?: string; link_title?: string; }; declare type ShareVkPostResponseType = VkResponseType<'VKWebAppShowWallPostBox'>; declare type ShareVkPostWithUploadParamsType = { postProps: ShareVkPostPropsType; file: File; apiUploadUrl: UrlConfigType; userId: number; appId: number; accessToken?: string; onUserDeniedAccess?: VoidFunction; onErrorOccurred?: (error?: any, errorData?: any) => void; }; declare type ShareVkPostWithUploadResponseType = VkResponseType<'VKWebAppShowWallPostBox'> | VkResponseType<'VKWebAppCallAPIMethod'>; declare type UploadFromApiToVkResponseType = ApiResponse<{ hash: string; photo: string; server: string; }>; declare type SaveVkWallPhotoResponseType = CallVkApiResponseType<{ id: number; album_id: number; owner_id: number; }[]>; export type { ShareVkPostPropsType, ShareVkPostResponseType, ShareVkPostWithUploadParamsType, ShareVkPostWithUploadResponseType, UploadFromApiToVkResponseType, SaveVkWallPhotoResponseType, };