# Installation
> `npm install --save @types/labeled-stream-splicer`

# Summary
This package contains type definitions for labeled-stream-splicer (https://github.com/browserify/labeled-stream-splicer).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/labeled-stream-splicer.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/labeled-stream-splicer/index.d.ts)
````ts
/// <reference types="node" />
import stream = require("stream");

type Stream = NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream;
type Index = number | string;
type LabeledStreamList = ReadonlyArray<string | Stream | readonly Stream[]>;

interface splicer extends Omit<stream.Duplex, "push" | "unshift"> {
    readonly length: number;
    splice(index: Index, howMany: number, ...stream: readonly Stream[]): Stream[];
    push(...stream: readonly Stream[]): number;
    pop(): Stream | undefined;
    unshift(...stream: readonly Stream[]): number;
    shift(): Stream | undefined;
    get(index: Index): Stream | undefined;
    indexOf(labelOrStream: string | Stream): number;
}

declare function splicer(streams?: LabeledStreamList, opts?: stream.TransformOptions): splicer;

declare namespace splicer {
    function obj(streams?: LabeledStreamList, opts?: stream.TransformOptions): splicer;
}

export = splicer;

````

### Additional Details
 * Last updated: Fri, 24 Oct 2025 04:02:41 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Junxiao Shi](https://github.com/yoursunny).
