UNPKG

@nteract/epics

Version:
76 lines (75 loc) 3.33 kB
import { StateObservable } from "redux-observable"; import { Observable } from "rxjs"; import * as actions from "@nteract/actions"; import { AppState } from "@nteract/types"; import { RemoteKernelProps } from "@nteract/types"; export declare const launchWebSocketKernelEpic: (action$: Observable<actions.LaunchKernelByNameAction>, state$: StateObservable<AppState>) => Observable<{ type: "LAUNCH_KERNEL_FAILED"; payload: import("@nteract/actions/lib/utils").MaybeHasContent & import("@nteract/actions/lib/utils").MaybeHasKernel & { error: Error; code?: string | undefined; }; error: true; } | { type: "LAUNCH_KERNEL_SUCCESSFUL"; payload: import("@nteract/actions/lib/utils").HasContent & import("@nteract/actions/lib/utils").HasKernel & { kernel: import("@nteract/types").LocalKernelProps | RemoteKernelProps; selectNextKernel: boolean; }; }>; export declare const changeWebSocketKernelEpic: (action$: Observable<actions.ChangeKernelByName>, state$: StateObservable<AppState>) => Observable<{ type: "LAUNCH_KERNEL_FAILED"; payload: import("@nteract/actions/lib/utils").MaybeHasContent & import("@nteract/actions/lib/utils").MaybeHasKernel & { error: Error; code?: string | undefined; }; error: true; } | { type: "LAUNCH_KERNEL_SUCCESSFUL"; payload: import("@nteract/actions/lib/utils").HasContent & import("@nteract/actions/lib/utils").HasKernel & { kernel: import("@nteract/types").LocalKernelProps | RemoteKernelProps; selectNextKernel: boolean; }; }>; export declare const interruptKernelEpic: (action$: Observable<actions.InterruptKernel>, state$: StateObservable<AppState>) => Observable<{ type: "INTERRUPT_KERNEL_FAILED"; payload: import("@nteract/actions/lib/utils").MaybeHasKernel & { error: Error; code?: string | undefined; }; error: true; } | { type: "INTERRUPT_KERNEL_SUCCESSFUL"; payload: import("@nteract/actions/lib/utils").MaybeHasContent & import("@nteract/actions/lib/utils").MaybeHasKernel; }>; export declare const killKernelEpic: (action$: Observable<actions.KillKernelAction>, state$: StateObservable<AppState>) => Observable<{ type: "KILL_KERNEL_FAILED"; payload: import("@nteract/actions/lib/utils").MaybeHasKernel & { error: Error; code?: string | undefined; }; error: true; } | { type: "KILL_KERNEL_SUCCESSFUL"; payload: import("@nteract/actions/lib/utils").MaybeHasKernel; } | { type: "DISPOSE_KERNEL"; payload: import("@nteract/actions/lib/utils").HasKernel; }>; export declare const restartWebSocketKernelEpic: (action$: Observable<actions.RestartKernel>, state$: StateObservable<AppState>) => Observable<{ type: "RESTART_KERNEL_SUCCESSFUL"; payload: import("@nteract/actions/lib/utils").HasContent & import("@nteract/actions/lib/utils").HasKernel; } | { type: "EXECUTE_ALL_CELLS"; payload: import("@nteract/actions/lib/utils").HasContent; } | { type: "RESTART_KERNEL_FAILED"; payload: import("@nteract/actions/lib/utils").HasContent & import("@nteract/actions/lib/utils").HasKernel & { error: Error; code?: string | undefined; }; error: true; } | { type: "CLEAR_ALL_OUTPUTS"; payload: import("@nteract/actions/lib/utils").HasContent; }>;