UNPKG

af-consul

Version:

A highly specialized function library

20 lines 1.11 kB
import { IAccessPoint, IAccessPoints, ILogger } from '../interfaces'; declare const _logger_: unique symbol; export declare class AccessPoints { private readonly [_logger_]; constructor(accessPoints: IAccessPoints, logger?: ILogger); static normalizePort(port: unknown): number | null; static normalizeProtocol(protocol: string | null): string; static normalizeValue(propName: string, propValue: any): any; static getPureProps(accessPointSource: Record<string, any>): IAccessPoint; addAP(apKey: string, apData: any): IAccessPoint | undefined; setAP(apKey: string, apData: Record<string, any> | null): IAccessPoint | undefined; getAP(accessPointKey: string, andNotIsAP?: boolean): IAccessPoint | undefined; /** * Если передан accessPointKey, то возвращается этот AP, если есть. * Если accessPointKey НЕ передан, то возвращаются ВСЕ AP */ get(accessPointKey?: string, andNotIsAP?: boolean): IAccessPoints | IAccessPoint | undefined; } export {}; //# sourceMappingURL=access-points.d.ts.map