@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
19 lines • 722 B
TypeScript
export declare class HtmlRenderImagesNotFoundError extends Error {
readonly paths: readonly string[];
constructor(paths: readonly string[]);
}
export declare class HtmlRenderImageTooLargeError extends Error {
constructor(path: string, sizeBytes: number);
}
export declare class HtmlRenderPageTooLargeError extends Error {
constructor(sizeBytes: number);
}
/**
* Replaces every local image the page loads with a data URI. A loaded path that cannot be read as an
* image stays as written and is returned in `missing`; the caller decides what that means.
*/
export declare function inlineLocalImages(html: string): Promise<{
html: string;
missing: string[];
}>;
//# sourceMappingURL=images.d.ts.map