import { Component, h } from 'preact'; export interface PixPlaceHolderProps { /** 每次 src 属性被修改时会派发onload事件 */ onload?: (e: any) => any; /** src为空时会派发onerror;原生资源无法成功挂载也会派发onerror,与src为空的区别此时e.attachment.handle不为0 */ onerror?: (e: any) => any; style?: any; className?: string; name?: string; } export declare interface PixPlaceHolderLoadEvent { target?: { attachment?: { handle: number; }; }; [key: string]: any; } export declare class PixPlaceHolder extends Component { protected children: any; protected mountingGameObject: any; protected attachment: any; protected dom: any; private timer; private com; getAttachment: (e: PixPlaceHolderLoadEvent) => any; onAttach(attachment: any, windowId: any, handle: any): void; onLoad(e: PixPlaceHolderLoadEvent, ...rest: any[]): void; onError(...args: any[]): void; render(): h.JSX.Element; }