UNPKG

crunchyroll-js-api

Version:
109 lines (108 loc) 2.81 kB
declare namespace _default { export { createMultiProfile }; export { deleteMultiProfile }; export { getAccountId }; export { getProfile }; export { getMultiProfile }; export { getMultiProfiles }; export { getUsernames }; export { updateProfile }; export { updateMultiProfile }; } export default _default; /** * Update profile * @param {Object} obj * @param {String} obj.token * @param {import('../types').ProfileCreate} obj.data * @returns {Promise} */ declare function createMultiProfile({ token, data }: { token: string; data: import('../types').ProfileCreate; }): Promise<any>; /** * Delete profile * @param {Object} obj * @param {String} obj.token * @param {String} obj.profileId * @returns {Promise} */ declare function deleteMultiProfile({ token, profileId }: { token: string; profileId: string; }): Promise<any>; /** * Return account info * @param {Object} obj * @param {String} obj.token * @returns {Promise<import('../types').Account>} */ declare function getAccountId({ token }: { token: string; }): Promise<import('../types').Account>; /** * Return profile info * @deprecated * @param {Object} obj * @param {String} obj.token * @returns {Promise<import('../types').Profile>} */ declare function getProfile({ token }: { token: string; }): Promise<import('../types').Profile>; /** * Return profile info * @param {Object} obj * @param {String} obj.token * @param {String} obj.profileId * @returns {Promise<import('../types').Profile>} */ declare function getMultiProfile({ token, profileId }: { token: string; profileId: string; }): Promise<import('../types').Profile>; /** * Return profile info * @param {Object} obj * @param {String} obj.token * @returns {Promise<import('../types').ProfileResponse>} */ declare function getMultiProfiles({ token }: { token: string; }): Promise<import('../types').ProfileResponse>; /** * Return user names, idk what it is * @param {Object} obj * @param {String} obj.token * @returns {Promise<{usernames: Array<String>}>} */ declare function getUsernames({ token }: { token: string; }): Promise<{ usernames: Array<string>; }>; /** * Update profile * @param {Object} obj * @param {String} obj.token * @param {import('../types').Profile} obj.data * @returns {Promise} */ declare function updateProfile({ token, data }: { token: string; data: import('../types').Profile; }): Promise<any>; /** * Update profile * @param {Object} obj * @param {String} obj.token * @param {import('../types').Profile} obj.data * @param {String} obj.profileId * @returns {Promise} */ declare function updateMultiProfile({ token, data, profileId }: { token: string; data: import('../types').Profile; profileId: string; }): Promise<any>;