2023-03-06 07:41:45 +00:00
|
|
|
/**
|
|
|
|
* [Live Demo](https://www.primevue.org/terminal/)
|
|
|
|
*
|
|
|
|
* @module terminalservice
|
|
|
|
*
|
|
|
|
*/
|
2023-03-06 07:22:29 +00:00
|
|
|
/**
|
|
|
|
* Confirmation Service methods.
|
|
|
|
*
|
|
|
|
* @group Interfaces
|
|
|
|
*
|
|
|
|
*/
|
2022-09-06 12:03:37 +00:00
|
|
|
export interface TerminalServiceOptions {
|
2023-03-06 07:41:45 +00:00
|
|
|
/**
|
|
|
|
* Displays the terminal using the action options.
|
|
|
|
*/
|
2023-03-06 10:59:56 +00:00
|
|
|
on(action: 'command' | 'response' | undefined, fn: any): void;
|
2023-03-06 07:41:45 +00:00
|
|
|
/**
|
|
|
|
* Emits the terminal using the action options.
|
|
|
|
*/
|
2023-03-06 10:59:56 +00:00
|
|
|
emit(action: 'command' | 'response' | undefined, params?: any): void;
|
2023-03-06 07:41:45 +00:00
|
|
|
/**
|
|
|
|
* Closes the terminal using the action options.
|
|
|
|
*/
|
2023-03-06 10:59:56 +00:00
|
|
|
off(action: 'command' | 'response' | undefined, fn: any): void;
|
2022-09-06 12:03:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare const TerminalService: TerminalServiceOptions;
|
|
|
|
|
|
|
|
export default TerminalService;
|