UNPKG

611 BTypeScriptView Raw
1/**
2 * Copyright (c) 2017-present, Ephox, Inc.
3 *
4 * This source code is licensed under the Apache 2 license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 */
8export declare type callbackFn = () => void;
9export interface IStateObj {
10 listeners: callbackFn[];
11 scriptId: string;
12 scriptLoading: boolean;
13 scriptLoaded: boolean;
14}
15interface ScriptLoader {
16 load: (doc: Document, url: string, async: boolean, defer: boolean, delay: number, callback: callbackFn) => void;
17 reinitialize: () => void;
18}
19declare const ScriptLoader: ScriptLoader;
20export { ScriptLoader };