///
export interface PEMBlock {
type: string;
headers: Map;
data: Buffer;
toString(armor?: boolean): string;
fromString(str: string, armor?: boolean): this;
getProcType(): ProcType;
setProcType(version?: number, state?: string): this;
unsetProcType(): this;
getDEKInfo(): DEKInfo;
setDEKInfo(name: string, iv?: Buffer): this;
unsetDEKInfo(): this;
isEncrypted(): boolean;
}
export interface PEMBlockStatic {
new (type?: string, data?: Buffer): PEMBlock;
fromString(str: string, armor?: boolean): PEMBlock;
}
export interface ProcType {
toString(): string;
fromString(str: string): this;
}
export interface ProcTypeStatic {
new (version?: number, state?: string): ProcType;
fromString(str: string): ProcType;
}
export interface DEKInfo {
toString(): string;
fromString(str: string): this;
}
export interface DEKInfoStatic {
new (name?: string, iv?: Buffer): DEKInfo;
fromString(str: string): DEKInfo;
}