import { AppState, ContentRef, KernelRef } from "@nteract/types"; /** * Returns the contents, such as notebooks and files, that are currently accessible * within the current notebook application. * * @param state The state of the nteract application * * @returns The contents in scope by the nteract application by ID */ export declare const contentByRef: (state: AppState) => import("immutable").Map; /** * * @param state The state of the nteract application * @param { contentRef: ContentRef } A reference to the ContentRecord to retrieve * * @returns The ContentRecord for the given ref */ export declare const content: (state: AppState, { contentRef }: { contentRef: ContentRef; }) => import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | undefined; /** * Returns the model within the ContenteRecrd specified by contentRef. * For example, if the ContentRecord is a reference to a notebook object, * the model would contain the NotebookModel. * * @param state The state of the nteract application * @param { contentRef: ContentRef } A reference to the ContentRecord to retrieve * * @returns The model of the content under the current ref */ export declare const model: (state: AppState, { contentRef }: { contentRef: ContentRef; }) => import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | null; export declare const notebookModel: (state: AppState, { contentRef }: { contentRef: ContentRef; }) => import("immutable").RecordOf; /** * Returns a ref to the kernel associated with a particular type of content. * Currently, this only support kernels associated with notebook contents. * Returns null if there are no contents or if the contents are not * a notebook. * * @param state The state of the nteract application * @param { contentRef: ContentRef } A reference to the ContentRecord to retrieve * * @returns The kernel associated with a notebook */ export declare const kernelRefByContentRef: (state: AppState, ownProps: { contentRef: ContentRef; }) => KernelRef | null | undefined; export declare const kernelByContentRef: (state: AppState, ownProps: { contentRef: ContentRef; }) => import("immutable").RecordOf | import("immutable").RecordOf | import("immutable").RecordOf | null | undefined; /** * Returns the filepath for the content identified by a given ContentRef. * * @param state The state of the nteract application * @param ownProps An object containing the ContentRef * * @returns The filepath for the content */ export declare const filepath: (state: AppState, ownProps: { contentRef: ContentRef; }) => string | null; /** * Returns the ContentRef associated with a given filepath. * * @param state The state of the nteract application * @param ownProps An object containing the filepath * * @returns The ContentRef for the content under a filepath */ export declare const contentRefByFilepath: (state: AppState, ownProps: { filepath: string; }) => string | undefined;