@uploadcare/blocks
Version:
Building blocks for Uploadcare products integration
56 lines • 1.49 kB
TypeScript
export class Block extends BaseComponent<any> {
/** @param {String} [name] */
static reg(name?: string): void;
constructor();
ctxInit: {
'*ctxTargetsRegistry': Map<any, any>;
};
init$: {
'*ctxTargetsRegistry': Map<any, any>;
};
/**
* @param {String} str
* @param {{ [key: string]: string | number }} variables
* @returns {String}
*/
l10n(str: string, variables?: {
[key: string]: string | number;
}): string;
/** @type {String} */
activityType: string;
/**
* @private
* @type {String[]}
*/
private __l10nKeys;
/**
* @param {String} localPropKey
* @param {String} l10nKey
*/
applyL10nKey(localPropKey: string, l10nKey: string): void;
/**
* @param {String} targetTagName
* @returns {Boolean}
*/
checkCtxTarget(targetTagName: string): boolean;
/**
* @param {String} targetTagName
* @param {String} prop
* @param {any} newVal
*/
setForCtxTarget(targetTagName: string, prop: string, newVal: any): void;
_destroyInnerHeightTracker: () => void;
/**
* @param {Number} bytes
* @param {Number} [decimals]
*/
fileSizeFmt(bytes: number, decimals?: number): string;
/**
* @param {String} url
* @returns {String}
*/
proxyUrl(url: string): string;
}
export { BaseComponent };
import { BaseComponent } from "@symbiotejs/symbiote";
//# sourceMappingURL=Block.d.ts.map