/** * Class to create and manage entity models. */ export declare class Model { /** * Hash of this model. */ private hash; /** * Creates a model object based on the hash key or model string. * * @param hash A number or string of the model's hash. Example: "mp_m_freemode_01" */ constructor(hash: number | string); /** * Gets the hash of the model. * * @returns The hash key. */ readonly Hash: number; /** * Gets if the model is a Ped or not. * * @returns Whether this model is a Ped. */ readonly IsPed: boolean; /** * Gets if the model is a Vehicle or not. * * @returns Whether this model is a Vehicle. */ readonly IsVehicle: boolean; /** * Gets if the model is loaded or not. * * @returns Whether this model is loaded. */ readonly IsLoaded: boolean; /** * Request and load the model with a specified timeout. Advised timeout - 1000. * * @param timeout Maximum allowed time for model to load. */ request(timeout: number): Promise; /** * Sets the model as no longer needed allowing the game engine to free memory. */ markAsNoLongerNeeded(): void; }