UNPKG

vk-io

Version:

Modern VK API SDK for Node.js

16 lines (15 loc) 575 B
import { API } from '../api'; export interface IResolveResourceOptions { resource: string | number; api?: API; } export interface IResolvedTargetResource { id: number; type: 'user' | 'group' | 'application' | 'albums' | 'videos' | 'audios'; } export interface IResolvedOwnerResource { id: number; ownerId: number; type: 'photo' | 'audio' | 'video' | 'doc' | 'wall' | 'topic' | 'album'; } export declare const resolveResource: ({ resource: rawResource, api, }: IResolveResourceOptions) => Promise<IResolvedTargetResource | IResolvedOwnerResource>;