import { PopExtRespCode } from "./PopExtRespCode"; export declare enum PopResponseType { Success = "+OK", Failure = "-ERR" } export declare class PopResponse { readonly type: PopResponseType; readonly message: string | string[] | null; readonly ext_resp_code: PopExtRespCode | null; /** * Constructs a new PopResponse. * @param type the type of response. * @param message the message. * @param ext_resp_code the extended response code. */ constructor(type: PopResponseType, message: string | string[] | null, ext_resp_code?: PopExtRespCode | null); /** * Decodes the given response string. * @param raw the raw response. * @returns the parsed response. */ static decode(raw: string): PopResponse; /** * Encodes the current response instance. * @param add_newline if it should add a LINE_SEPARATOR at the end. * @returns the encoded response. */ encode(add_newline?: boolean): string; }