@carbon/ibm-products
Version:
Carbon for IBM Products
18 lines • 662 B
TypeScript
import React, { ReactNode } from 'react';
export interface WebTerminalContextType {
open?: boolean;
openWebTerminal?: () => void;
closeWebTerminal?: () => void;
toggleWebTerminal?: () => void;
}
export declare const WebTerminalContext: React.Context<WebTerminalContextType>;
interface WebTerminalProviderProps {
/**
* Provide your own terminal component as children to show up in the web terminal
*/
children: ReactNode | ReactNode[];
}
export declare const WebTerminalProvider: React.FC<WebTerminalProviderProps>;
export declare const useWebTerminal: () => WebTerminalContextType;
export {};
//# sourceMappingURL=index.d.ts.map