cn-shell
Version:
Cloud Native Shell
38 lines (37 loc) • 1.04 kB
TypeScript
import {
Shell,
ConfigOptions,
HttpReqPoolOptions,
HttpReqOptions,
HttpReqResponse,
} from "./shell.js";
export interface ShellExtConfig {
name: string;
shell: Shell;
}
export declare class ShellExt {
private _name;
private _shell;
constructor(config: ShellExtConfig);
start(): Promise<boolean>;
stop(): Promise<void>;
healthCheck(): Promise<boolean>;
get name(): string;
getConfigStr(config: string, passedOptions?: ConfigOptions): string;
getConfigBool(config: string, passedOptions?: ConfigOptions): boolean;
getConfigNum(config: string, passedOptions?: ConfigOptions): number;
fatal(...args: any): void;
error(...args: any): void;
warn(...args: any): void;
info(...args: any): void;
startup(...args: any): void;
debug(...args: any): void;
trace(...args: any): void;
force(...args: any): void;
createHttpReqPool(origin: string, passedOptions?: HttpReqPoolOptions): void;
httpReq(
origin: string,
path: string,
passedOptions?: HttpReqOptions,
): Promise<HttpReqResponse>;
}