import { AllDestinyManifestComponents, DestinyManifestComponentName, DestinyManifestLanguage } from './index.js'; import { DestinyManifest } from '../schemas'; export interface GetDestinyManifestComponentParams { destinyManifest: DestinyManifest; tableName: T; language: DestinyManifestLanguage; } /** * this fetches and returns a single table (Component) from the d2 manifest * i.e. DestinyInventoryItemDefinition / DestinyObjectiveDefinition / * DestinyVendorDefinition / DestinySeasonDefinition / etc. * * due to typescript limitations, the table name needs to be recognized by * typescript as a const (not mutable between inception and going into the function), * so that it considers it a table name and not just a string. * * this is easy with a string, since * * `const x = 'thing';` is type `'thing'`, not type `string`, * * but make sure it's not a `let x =` or a dynamically set string. */ export declare function getDestinyManifestComponent(params: GetDestinyManifestComponentParams): Promise;