# @types/modesl

> TypeScript definitions for modesl

Latest version **1.1.6** (published 2024-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/modesl
pnpm add @types/modesl
yarn add @types/modesl
bun add @types/modesl
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2024-07-13 |
| First published | 2017-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/modesl
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/modesl
- npm.io page: https://npm.io/package/@types/modesl

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 1.1.6 (latest) — 2024-07-13
- 1.1.5 (ts4.7) — 2023-11-07
- 1.1.2 (ts3.9) — 2019-12-23
- 1.1.1 (ts2.7) — 2017-03-27
- 1.1.4 — 2023-10-18
- 1.1.3 — 2023-09-27
- 1.1.0 — 2017-02-15

## README

# Installation
> `npm install --save @types/modesl`

# Summary
This package contains type definitions for modesl (https://github.com/englercj/node-esl).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/modesl.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/modesl/index.d.ts)
````ts
/// <reference types="node" />

import { EventEmitter } from "events";

export class Connection extends EventEmitter {
    constructor(...args: any[]);

    api(command: any, args: string[], cb?: () => void): void;

    auth(cb: () => void): void;

    bgapi(command: any, args: string[], jobid?: any, cb?: () => void): void;

    connected(): any;

    disconnect(): void;

    events(type: "json" | "plain" | "xml", events: string, cb?: () => void): void;

    execute(app: any, arg?: string, uuid?: string, cb?: () => void): any;

    executeAsync(app: any, arg?: string, uuid?: string, cb?: () => void): any;

    filter(header: any, value: any, cb?: () => void): void;

    filterDelete(header: any, value: any, cb?: () => void): void;

    getInfo(): any;

    message(options: any, cb?: () => void): void;

    originate(options: any, cb?: () => void): void;

    recvEvent(cb?: () => void): void;

    recvEventTimed(ms: any, cb?: () => void): void;

    send(command: any, args: any): void;

    sendEvent(event: any, cb?: () => void): void;

    sendRecv(command: any, args: any, cb?: () => void): void;

    setAsyncExecute(value: any): void;

    setEventLock(value: any): void;

    show(item: any, format: any, cb?: () => void): void;

    socketDescriptor(): any;

    subscribe(events: any, cb?: () => void): void;
}

export interface Header {
    name: string;

    value: string;
}

export class Event {
    constructor(type: any, subclass: any);

    headers: Header[];

    addBody(value: any): any;

    addHeader(name: any, value: any): any;

    delHeader(name: any): any;

    firstHeader(): any;

    getBody(): any;

    getHeader(name: any): string | null;

    getType(): any;

    nextHeader(): any;

    serialize(format: any): any;

    setPriority(priority: any): void;

    static readonly PRIORITY: {
        HIGH: string;
        LOW: string;
        NORMAL: string;
    };
}
export class Parser {
    constructor(socket: any);
}
export class Server extends EventEmitter {
    constructor(opts: any, readycb?: () => void);

    close(callback: any): void;
}
export function eslSetLogLevel(level: any): void;

export function setLogLevel(level: any): void;

````

### Additional Details
 * Last updated: Sat, 13 Jul 2024 08:35:57 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Nischit Ranganath](https://github.com/neeschit).

---
_Source: https://npm.io/package/@types/modesl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
