UNPKG

@gaoding/editor-sdk

Version:

稿定编辑器对外 SDK

27 lines (26 loc) 836 B
interface Methods { [index: string]: Function; } export declare function createIframeModal(frame: HTMLIFrameElement, onClose?: () => Promise<boolean | undefined>): { open: () => void; close: () => Promise<void>; }; export declare function createConnect<T extends { [k: string]: any; }>(options: { methods: Methods; appId: string; container?: string | HTMLElement; onClose?(): Promise<boolean | undefined>; css?: string; }): { remove: () => void; insert: () => void; update: (url: string, query?: { [k: string]: any; }) => Promise<void>; iframe: HTMLIFrameElement; restetContainer: (container: string | HTMLElement) => void; getService(): Promise<import("penpal/lib/types").AsyncMethodReturns<T, import("penpal/lib/types").FunctionPropertyNames<T>>>; }; export {};