UNPKG

thebe-core

Version:

Typescript based core functionality for Thebe

23 lines (22 loc) 1.04 kB
import { Config } from './config'; import type { ThebeEvents } from './events'; import type { ServerSettings, BinderOptions, KernelOptions, CoreOptions, SavedSessionOptions, MathjaxOptions } from './types'; export declare function makeBinderOptions(opts: BinderOptions): { repo: string; ref: string; binderUrl: string; repoProvider: string; }; export declare function makeSavedSessionOptions(opts: SavedSessionOptions): Required<SavedSessionOptions>; export declare function makeKernelOptions(opts: KernelOptions): Required<KernelOptions>; export declare function makeServerSettings(settings: ServerSettings): Required<ServerSettings>; export declare function makeMathjaxOptions(opts?: MathjaxOptions): { mathjaxConfig: string; mathjaxUrl: string; }; export declare function makeConfiguration(options: CoreOptions & { [k: string]: any; }, events?: ThebeEvents): Config; export declare function ensureCoreOptions(options: CoreOptions & { [k: string]: any; }, events?: ThebeEvents): Required<CoreOptions>;