UNPKG

cc-terminal

Version:
36 lines (35 loc) 1.11 kB
import { OnDestroy } from '@angular/core'; import { Observable } from 'rxjs'; import { CommandStore } from './cc-terminal-command-store'; import * as i0 from "@angular/core"; export declare class CcTerminalService implements OnDestroy { private ngUnsubscribe; prompt: any; store: CommandStore; private event; constructor(); fetch(url: string): any; broadcast(key: any, data?: any): void; /** * @description - This function will register to execute the store whenever store is ready. */ readyStore(): void; on<T>(key: any): Observable<T>; /** * @description - Get the Current prompt */ getPrompt(): any; /** * @description - Get the Current store */ getStore(): CommandStore; initPrompt(config: any): any; /** * @description - This function will help you to interpret your commands. * @param cmd - command */ interpret(cmd: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<CcTerminalService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CcTerminalService>; }