import Renderer from "./core/Renderer"; import { Texture } from "./texture"; import { CONTENT_TYPE, OBJECT_FIT } from "./const/options"; import { Attributes, ValueOf } from "./types"; export interface SignBoardOptions { contentType: ValueOf; contentAttribs: Partial | Attributes>; frameRate: number; autoResize: boolean; autoInit: boolean; tileSize: number; emission: number; dissipation: number; bulbSize: number; objectFit: ValueOf; textOptions: Partial>; textPadding: number | number[]; scrollSpeed: number; initOnFontLoad: boolean | [boolean, string]; } declare class SignBoard { private _renderer; private _texture; private _src; private _initialized; private _contentType; private _contentAttribs; private _autoResize; private _autoInit; private _frameRate; private _tileSize; private _emission; private _dissipation; private _bulbSize; private _objectFit; private _initOnFontLoad; private _textOptions; private _textPadding; private _scrollSpeed; get renderer(): Renderer; get src(): string; get initialized(): boolean; get texture(): Texture; get contentType(): SignBoardOptions["contentType"]; set contentType(val: SignBoardOptions["contentType"]); get contentAttribs(): SignBoardOptions["contentAttribs"]; set contentAttribs(val: SignBoardOptions["contentAttribs"]); get autoResize(): boolean; set autoResize(val: boolean); get autoInit(): boolean; get frameRate(): number; set frameRate(val: number); get tileSize(): number; set tileSize(val: number); get emission(): number; set emission(val: number); get dissipation(): number; set dissipation(val: number); get bulbSize(): number; set bulbSize(val: number); get objectFit(): SignBoardOptions["objectFit"]; set objectFit(val: SignBoardOptions["objectFit"]); get textOptions(): SignBoardOptions["textOptions"]; set textOptions(val: SignBoardOptions["textOptions"]); get textPadding(): SignBoardOptions["textPadding"]; set textPadding(val: SignBoardOptions["textPadding"]); get scrollSpeed(): SignBoardOptions["scrollSpeed"]; set scrollSpeed(val: SignBoardOptions["scrollSpeed"]); get initOnFontLoad(): boolean | [boolean, string]; constructor(canvas: string | HTMLElement, src: string, { contentType, contentAttribs, autoResize, autoInit, frameRate, tileSize, emission, dissipation, bulbSize, objectFit, textOptions, textPadding, scrollSpeed, initOnFontLoad }?: Partial); destroy(): void; init(): Promise; resize(): this; start(): this; stop(): this; update(src?: string): this; private _updateAutoResize; private _checkFontLoad; } export default SignBoard;