/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /** * Arguments to be passed to createBuffer */ interface CreateBufferArgs { /** * The byte order of this buffer. */ byteOrder?: number; /** * The length of the buffer. */ length?: number; /** * The type of data encoding to use with `value`. */ type?: string; /** * An initial value which will be encoded and placed in the buffer. If value is a Number, type must also be set. (this is simply a convenient way of calling or and placing the encoded value in the returned buffer.) */ value?: string | number; } /** * The top-level Titanium module. */ declare namespace Titanium { /** * Date of the Titanium build. */ const buildDate: string; /** * Git hash of the Titanium build. */ const buildHash: string; /** * User-agent string used by Titanium. */ let userAgent: string; /** * Version of Titanium that is executing. */ const version: string; /** * Adds the specified callback as an event listener for the named event. */ function addEventListener(name: string, callback: (param0: Titanium.Event) => void): void; /** * Creates a new buffer based on the params. */ function createBuffer(params: CreateBufferArgs): Titanium.Buffer; /** * Fires a synthesized event to any registered listeners. */ function fireEvent(name: string, event?: any): void; /** * Removes the specified callback as an event listener for the named event. */ function removeEventListener(name: string, callback: (param0: Titanium.Event) => void): void; }