This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/@mariozechner/pi-tui/dist/components/image.d.ts
T

28 lines
959 B
TypeScript

import { type ImageDimensions } from "../terminal-image.js";
import type { Component } from "../tui.js";
export interface ImageTheme {
fallbackColor: (str: string) => string;
}
export interface ImageOptions {
maxWidthCells?: number;
maxHeightCells?: number;
filename?: string;
/** Kitty image ID. If provided, reuses this ID (for animations/updates). */
imageId?: number;
}
export declare class Image implements Component {
private base64Data;
private mimeType;
private dimensions;
private theme;
private options;
private imageId?;
private cachedLines?;
private cachedWidth?;
constructor(base64Data: string, mimeType: string, theme: ImageTheme, options?: ImageOptions, dimensions?: ImageDimensions);
/** Get the Kitty image ID used by this image (if any). */
getImageId(): number | undefined;
invalidate(): void;
render(width: number): string[];
}
//# sourceMappingURL=image.d.ts.map