## API Report File for "@apextoaster/js-utils"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
///
import { BaseError } from 'noicejs';
import { ChildProcessWithoutNullStreams } from 'child_process';
import { Logger } from 'noicejs';
import { spawn } from 'child_process';
import { Writable } from 'stream';
// @public (undocumented)
export type AllowedBufferEncoding = 'ascii' | 'utf-8';
// @public
export class ArrayMapper {
constructor(options: ArrayMapperOptions);
map(input: Array): Map>;
// (undocumented)
readonly rest: string;
// (undocumented)
readonly skip: number;
// (undocumented)
readonly take: Array;
}
// @public (undocumented)
export interface ArrayMapperOptions {
rest: string;
skip: number;
take: Array;
}
// @public
export class Checklist implements ChecklistOptions {
constructor(options: ChecklistOptions);
check(value: T): boolean;
readonly data: Array;
// (undocumented)
readonly mode: ChecklistMode;
}
// @public
export enum ChecklistMode {
// (undocumented)
EXCLUDE = "exclude",
// (undocumented)
INCLUDE = "include"
}
// @public
export interface ChecklistOptions {
// (undocumented)
data: Array;
// (undocumented)
mode: ChecklistMode;
}
// Warning: (ae-forgotten-export) The symbol "ChildProcessOptions" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export interface ChildOptions extends ChildProcessOptions {
// (undocumented)
args: Array;
// (undocumented)
command: string;
}
// @public
export class ChildProcessError extends BaseError {
constructor(msg?: string, ...nested: Array);
}
// @public (undocumented)
export interface ChildResult {
// (undocumented)
status: number;
// (undocumented)
stderr: string;
// (undocumented)
stdout: string;
}
// Warning: (ae-forgotten-export) The symbol "ChildStreams" needs to be exported by the entry point index.d.ts
//
// @public @deprecated
export function childResult(child: ChildStreams): Promise;
// @public (undocumented)
export type ChildSpawner = typeof spawn;
// @public
export function concat(chunks: Array): Buffer;
// Warning: (ae-forgotten-export) The symbol "Reflectable" needs to be exported by the entry point index.d.ts
//
// @public
export function constructorName(val: Reflectable): string;
// @public
export function defaultWhen(condition: boolean, ...items: Array): TVal;
// @public
export function defer(ms: number): Promise;
// Warning: (ae-forgotten-export) The symbol "PredicateC0" needs to be exported by the entry point index.d.ts
//
// @public
export function deferUntil(cb: PredicateC0, step: number, max: number): Promise;
// @public
export function deferValue(ms: number, val: T): Promise;
// @public (undocumented)
export interface Dict {
// (undocumented)
[key: string]: TVal;
}
// @public
export function doesExist(val: Maybe): val is T;
// @public
export function encode(chunks: Array, encoding: AllowedBufferEncoding): string;
// @public @deprecated (undocumented)
export function ensureArray(val: Maybe>): Array;
// @public (undocumented)
export function ensureArray(val: Maybe>): ReadonlyArray;
// @public
export function entriesOf(map: Maybe>): Array<[string, TVal]>;
// @public
export function filterZip(cb: (a: T1) => boolean, l1: Array): Array;
// @public (undocumented)
export function filterZip(cb: (a: T1, b: T2) => boolean, l1: Array, l2: Array): [Array, Array];
// @public (undocumented)
export function filterZip(cb: (a: T1, b: T2) => boolean, l1: Array, l2: Array, l3: Array): [Array, Array, Array];
// @public (undocumented)
export function filterZip(cb: (a: T1, b: T2) => boolean, l1: Array, l2: Array, l3: Array, l4: Array): [Array, Array, Array, Array];
// @public
export function getConstructor(val: Reflectable): Function;
// @public
export function getHead(map: Map>, key: TKey): TVal;
// @public
export function getHeadOrDefault(map: Map>>, key: TKey, defaultValue: TVal): TVal;
// Warning: (ae-forgotten-export) The symbol "Method" needs to be exported by the entry point index.d.ts
//
// @public
export function getMethods(value: TValue): Set>;
// @public
export function getOrDefault(map: Map, key: TKey, defaultValue: TVal): TVal;
// @public
export function getTestLogger(verbose?: boolean): Logger;
// @public
export function hasItems(val: Maybe>): val is Array;
// @public (undocumented)
export function hasItems(val: Maybe>): val is ReadonlyArray;
// @public
export class InvalidArgumentError extends BaseError {
constructor(msg?: string, ...nested: Array);
}
// @public
export function isArray(list: TVal | Array): list is Array;
// @public
export function isArray(list: TVal | ReadonlyArray): list is ReadonlyArray;
// Warning: (ae-internal-missing-underscore) The name "isDebug" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export function isDebug(): boolean;
// @public
export function isEmpty(val: Maybe | ReadonlyArray>): boolean;
// @public @deprecated
export function isNil(val: Maybe): val is Nil;
// @public
export function isNone(val: Maybe): val is None;
// @public
export function isSome(val: Maybe): val is T;
// @public
export function leftPad(val: string, min?: number, fill?: string): string;
// @public
export function lengthOf(val: Maybe): number;
// @public
export function makeDict(map: Maybe>): Dict;
// @public
export function makeMap(val: Maybe>): Map;
// @public
export type MapLike = Map | Dict;
// @public
export type Maybe = T | None;
// @public
export function mergeArray(...parts: Array>): Array;
// @public (undocumented)
export function mergeArray(...parts: ReadonlyArray>): ReadonlyArray;
// @public @deprecated (undocumented)
export function mergeArrays(...parts: Array>): Array;
// @public (undocumented)
export function mergeArrays(...parts: ReadonlyArray>): ReadonlyArray;
// @public
export function mergeMap(target: Map, source: Map | ReadonlyArray<[TKey, TVal]>): Map;
// @public
export class MissingKeyError extends NotFoundError {
constructor(msg?: string, ...nested: Array);
}
// @public @deprecated
export function mustCoalesce(...values: Array>): T;
// @public
export function mustDefault(...values: Array>): T;
// @public
export function mustExist(val: Maybe, err?: string): T;
// Warning: (ae-forgotten-export) The symbol "PredicateC1" needs to be exported by the entry point index.d.ts
//
// @public
export function mustFind(list: Array>, predicate: PredicateC1): TVal;
// @public
export function mustGet(map: Map, key: TKey): TVal;
// @public @deprecated
export type Nil = None;
// @public
export type None = null | undefined;
// @public @deprecated
export function normalizeMap(map: MapLike): Dict>;
// @public
export class NotFoundError extends BaseError {
constructor(msg?: string, ...nested: Array);
}
// @public
export class NotImplementedError extends BaseError {
constructor(msg?: string, ...nested: Array);
}
// @public @deprecated
export type Optional = Maybe;
// Warning: (ae-forgotten-export) The symbol "NameValuePair" needs to be exported by the entry point index.d.ts
//
// @public
export function pairsToMap(pairs: ReadonlyArray>): Map;
// @public
export function pushMergeMap(...args: Array