/** * The IResult interface. */ interface IResult { /** * Gets the value of the result. * * @return {number} - The value of the result. */ value: number; /** * Gets the text of result. * * @return {string} - The text of the result. */ text: string; /** * Indicates a value whether the result is good. * * @return {boolean} - True if the result is good, else false. */ isGood: boolean; /** * Indicates a value whether the result is bad. * * @return {boolean} - True if the result is bad, else false. */ isBad: boolean; } /** * The Result. */ declare class Result implements IResult { /** * Function call succeeded. */ static readonly OK = 0; /** * Function call succeeded with no content. */ static readonly OK_NO_CONTENT = 1; /** * Function call failed. */ static readonly FAILED = 2147483649; /** * Address not found, address invalid (browse of this node not possible, write -> address not valid). */ static readonly INVALID_ADDRESS = 2147549185; /** * Function not implemented. */ static readonly UNSUPPORTED = 2147549186; /** * Out of memory or resources (RAM, sockets, handles, disk space ...). */ static readonly OUT_OF_MEMORY = 2147549187; /** * The minimum of a limitation is exceeded. */ static readonly LIMIT_MIN = 2147549188; /** * The maximum of a limitation is exceeded. */ static readonly LIMIT_MAX = 2147549189; /** * Wrong flatbuffer type, wrong data type. */ static readonly TYPE_MISMATCH = 2147549190; /** * Size mismatch, present size doesn't match requested size. */ static readonly SIZE_MISMATCH = 2147549191; /** * Invalid floating point number. */ static readonly INVALID_FLOATINGPOINT = 2147549193; /** * Invalid handle argument or NULL pointer argument. */ static readonly INVALID_HANDLE = 2147549194; /** * Not accessible due to invalid operation mode (write not possible). */ static readonly INVALID_OPERATION_MODE = 2147549195; /** * Mismatch of this value with other configured values. */ static readonly INVALID_CONFIGURATION = 2147549196; /** * Invalid value. */ static readonly INVALID_VALUE = 2147549197; /** * Error in submodule. */ static readonly SUBMODULE_FAILURE = 2147549198; /** * Request timeout. */ static readonly TIMEOUT = 2147549199; /** * Create: resource already exists. */ static readonly ALREADY_EXISTS = 2147549200; /** * Error during creation. */ static readonly CREATION_FAILED = 2147549201; /** * Version conflict. */ static readonly VERSION_MISMATCH = 2147549202; /** * Deprecated - function not longer supported. */ static readonly DEPRECATED = 2147549203; /** * Request declined due to missing permission rights. */ static readonly PERMISSION_DENIED = 2147549204; /** * Object not initialized yet. */ static readonly NOT_INITIALIZED = 2147549205; /** * Missing argument (eg. missing argument in fbs). */ static readonly MISSING_ARGUMENT = 2147549206; /** * To many arguments. */ static readonly TOO_MANY_ARGUMENTS = 2147549207; /** * Resource unavailable. */ static readonly RESOURCE_UNAVAILABLE = 2147549208; /** * Low level communication error occurred. */ static readonly COMMUNICATION_ERROR = 2147549209; /** * Request can't be handled due to too many operations. */ static readonly TOO_MANY_OPERATIONS = 2147549210; /** * Request would block, you have called a synchronous function in a callback from a asynchronous function. */ static readonly WOULD_BLOCK = 2147549211; /** * Internal protocol error. */ static readonly COMM_PROTOCOL_ERROR = 2147614721; /** * Internal header mismatch. */ static readonly COMM_INVALID_HEADER = 2147614722; /** * Client not connected. */ static readonly CLIENT_NOT_CONNECTED = 2147680257; /** * Provider reset timeout. */ static readonly PROVIDER_RESET_TIMEOUT = 2147745793; /** * Provider update timeout. */ static readonly PROVIDER_UPDATE_TIMEOUT = 2147745794; /** * Provider update timeout. */ static readonly PROVIDER_SUB_HANDLING = 2147745795; /** * RT not open. */ static readonly RT_NOTOPEN = 2147876865; /** * RT invalid object. */ static readonly RT_INVALIDOBJECT = 2147876866; /** * RT wrong memory revision. */ static readonly RT_WRONGREVISON = 2147876867; /** * RT no valid data. */ static readonly RT_NOVALIDDATA = 2147876868; /** * RT memory already locked. */ static readonly RT_MEMORYLOCKED = 2147876869; /** * RT invalid memory map. */ static readonly RT_INVALIDMEMORYMAP = 2147876870; /** * RT invalid retain. */ static readonly RT_INVALID_RETAIN = 2147876871; /** * RT internal error. */ static readonly RT_INTERNAL_ERROR = 2147876872; /** * Allocation of shared memory failed - datalayer-shm connected? */ static readonly RT_MALLOC_FAILED = 2147876873; /** * BeginAccess would block because there are no data. */ static readonly RT_WOULD_BLOCK = 2147876874; /** * No token found. */ static readonly SEC_NOTOKEN = 2147942401; /** * Token not valid (session not found). */ static readonly SEC_INVALIDSESSION = 2147942402; /** * Token has wrong content. */ static readonly SEC_INVALIDTOKENCONTENT = 2147942403; /** * Unauthorized. */ static readonly SEC_UNAUTHORIZED = 2147942404; /** * Payment required. */ static readonly SEC_PAYMENT_REQUIRED = 2147942405; /** * Gets the value of the result. * * @return {number} - The value of the result. */ readonly value: number; /** * Gets the text of result. * * @return {string} - The text of the result. */ readonly text: string; /** * Indicates a value whether the result is good. * * @return {boolean} - True if the result is good, else false. */ readonly isGood: boolean; /** * Indicates a value whether the result is bad. * * @return {boolean} - True if the result is bad, else false. */ readonly isBad: boolean; /** * Creates an instance of Result. * * @param {number} value - The code of the result. * @param {string} text - The text of the result. */ constructor(value: number, text: string); } export = Result;