import BaseAPI from "./BaseAPI"; import Client from "../Client"; export type BaseAssetDeliveryOptions = { acceptEncoding: string; robloxPlaceId: number; assetType: string; accept: string; skipSigningScripts: boolean; clientInsert: number; scriptInsert: number; modulePlaceId: number; serverPlaceId: number; expectedAssetType: string; }; export type BaseAsset = { location?: string; errors?: { code: number; message: string; }[]; requestId?: string; isHashDynamic?: boolean; isCopyrightProtected?: boolean; isArchived?: boolean; }; export type BaseAssetRaw = { Location?: string; Errors?: { Code: number; Message: string; }[]; RequestId?: string; IsHashDynamic?: boolean; IsCopyrightProtected?: boolean; IsArchived?: boolean; }; export type GetAssetByAliasOptions = BaseAssetDeliveryOptions & { alias: string; }; export type GetAssetByAlias = BaseAsset; export type GetAssetByIdOptions = BaseAssetDeliveryOptions & { id: number; }; export type GetAssetById = { location?: string; request?: unknown; }; export type GetAssetByHashOptions = BaseAssetDeliveryOptions & { hash: string; }; export type GetAssetByHash = unknown; export type GetAssetByAssetIdOptions = BaseAssetDeliveryOptions & { assetId: number; }; export type GetAssetByAssetId = unknown; export type GetAssetVersionByAssetIdOptions = BaseAssetDeliveryOptions & { assetId: number; version: number; }; export type GetAssetVersionByAssetId = unknown; export type GetAssetByAssetVersionIdOptions = BaseAssetDeliveryOptions & { assetVersionId: number; }; export type GetAssetByAssetVersionId = unknown; export type GetAssetByMarAssetHashOptions = BaseAssetDeliveryOptions & { marAssetHash: string; marCheckSum: string; }; export type GetAssetByMarAssetHash = unknown; export type GetAssetByUserAssetIdOptions = BaseAssetDeliveryOptions & { userAssetId: number; }; export type GetAssetByUserAssetId = unknown; export type GetBatchAssetsOptions = { assetName: string; assetType: string; clientInsert: boolean; placeId: number; requestId: string; scriptInsert: boolean; serverPlaceId: number; universeId: number; accept: string; encoding: string; hash: string; userAssetId: number; assetId: number; version: number; assetVersionId: number; modulePlaceId: number; }; export type GetBatchAssets = BaseAsset[]; export default class AssetDeliveryAPI extends BaseAPI { constructor(client: Client); getAssetByAlias(options: GetAssetByAliasOptions): Promise; getAssetById(options: GetAssetByIdOptions): Promise; getAssetByHash(options: GetAssetByHashOptions): Promise; getAssetByAssetId(options: GetAssetByAssetIdOptions): Promise; getAssetVersionByAssetId(options: GetAssetVersionByAssetIdOptions): Promise; getAssetByAssetVersionId(options: GetAssetByAssetVersionIdOptions): Promise; getAssetByMarAssetHash(options: GetAssetByMarAssetHashOptions): Promise; getAssetByUserAssetId(options: GetAssetByUserAssetIdOptions): Promise; getBatchAssets(options: GetBatchAssetsOptions): Promise; }