import { AppState, JupyterHostRecord, ServerConfig, HostRef } from "@nteract/types"; /** * Creates a server configuration from details about a given Jupyter host. * * @param host The Jupyter host we are connected to * * @returns An object contain the endpoint, token */ export declare const serverConfig: (host: JupyterHostRecord) => ServerConfig; /** * Returns the host the nteract application is connected to. */ export declare const currentHost: (state: AppState) => import("@nteract/types").HostRecord; /** * Returns the type of host the nteract application is currently connected * to. This is set to "jupyter" by default. */ export declare const currentHostType: import("reselect").OutputSelector "jupyter" | "local" | "empty" | null>; /** * Returns true if the host we are currently connected to is a Jupyter * kernel. */ export declare const isCurrentHostJupyter: import("reselect").OutputSelector boolean>; /** * Returns whether or not we are currently connected to the kernel through * a websocket connection. */ export declare const isCurrentKernelJupyterWebsocket: import("reselect").OutputSelector boolean>; /** * Returns whether or not we are currently connected to the kernel through * a ZeroMQ connection. */ export declare const isCurrentKernelZeroMQ: import("reselect").OutputSelector boolean>; /** * Returns the hosts currently registered on the application by their refs. * * @param state The crrent application state */ export declare const hostsByRef: (state: AppState) => import("immutable").Map; /** * Returns the HostRef associated with a HostRecord. * * ``` * const host = makeJupyterHostRecord({ endpoint: "https://example.com "}); * const ref = selectors.hostRefByHostRecord(state, { host }); * ``` * * @param state The current application state * @param { host } An object containing the hostRecord to retrieve an HostRef for */ export declare const hostRefByHostRecord: (state: AppState, { host }: { host: JupyterHostRecord; }) => string | undefined; /** * Returns the HostRecord associated with a hostRef. * * ``` * const hostRef = "someHostRef"; * const hostRecord = selectors.hostRecordByHostRef(state, { hostRef }); * ``` * @param state The current application sate * @param { hostRef } An object containing the hostRef to retrieve a record for */ export declare const hostRecordByHostRef: (state: AppState, { hostRef }: { hostRef: HostRef; }) => import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | undefined;