/** * @packageDocumentation * @module audio-extension */ import type { JupyterFrontEndPlugin } from '@jupyterlab/application'; import type { DocumentRegistry, IDocumentWidget } from '@jupyterlab/docregistry'; import { ABCWidgetFactory, DocumentWidget } from '@jupyterlab/docregistry'; import type { Contents } from '@jupyterlab/services'; import { Widget } from '@lumino/widgets'; /** * An audio viewer widget. */ export declare class AudioViewer extends Widget { /** * Construct a new audio viewer widget. */ constructor(options: AudioViewer.IOptions); /** * Dispose of the resources held by the widget. */ dispose(): void; /** * Handle `resize` messages for the widget. */ protected onResize(msg: Widget.ResizeMessage): void; /** * Update the audio source. */ private _updateAudio; private _context; private _audio; private _contentsManager; } /** * The namespace for AudioViewer class statics. */ export declare namespace AudioViewer { /** * The options used to create an audio viewer widget. */ interface IOptions { /** * The document context for the audio being rendered by the widget. */ context: DocumentRegistry.Context; /** * The contents manager. */ contentsManager: Contents.IManager; } } /** * A document widget for audio. */ export declare class AudioDocumentWidget extends DocumentWidget { constructor(options: AudioDocumentWidget.IOptions); } /** * The namespace for AudioDocumentWidget class statics. */ export declare namespace AudioDocumentWidget { /** * The options used to create an audio document widget. */ interface IOptions extends DocumentWidget.IOptions { } } /** * A widget factory for audio viewers. */ export declare class AudioViewerFactory extends ABCWidgetFactory> { /** * Construct a new audio viewer factory. */ constructor(options: AudioViewerFactory.IOptions); /** * Create a new widget given a context. */ protected createNewWidget(context: DocumentRegistry.Context): IDocumentWidget; private _contentsManager; } /** * The namespace for AudioViewerFactory class statics. */ export declare namespace AudioViewerFactory { /** * The options used to create an audio viewer factory. */ interface IOptions extends DocumentRegistry.IWidgetFactoryOptions { /** * The contents manager. */ contentsManager: Contents.IManager; } } /** * The audio extension. */ declare const plugin: JupyterFrontEndPlugin; /** * Export the plugin as default. */ export default plugin;