/// import { Server } from 'https'; import { Channel } from './channel'; import Commands from '@kui-shell/core/api/commands'; export declare type ExitHandler = (exitCode: number) => void; interface Session { uid: number; gid: number; token: string; } export interface SessionCookie { key: string; session: Session; } export declare const disableBashSessions: () => Promise; export declare const getLoginShell: () => Promise; export declare function setShellAliases(aliases: Record): void; export declare const onConnection: (exitNow: ExitHandler, uid?: number, gid?: number) => (ws: Channel) => Promise; export declare const main: (N: string, server?: Server, preexistingPort?: number, expectedCookie?: SessionCookie) => Promise; declare const _default: (commandTree: Commands.Registrar) => void; export default _default;