import type { Cell, FrameStyle } from "./elements.js";
type FrameArgs = {
    key?: string;
    x: number;
    y: number;
    width: number;
    height: number;
    style: FrameStyle;
    content?: Cell[][];
    children?: Frame[];
};
export declare class Frame {
    key?: string;
    x: number;
    y: number;
    width: number;
    height: number;
    style: FrameStyle;
    content?: Cell[][];
    children?: Frame[];
    constructor(args: FrameArgs);
    findByKey(key: string): Frame | undefined;
    toPlainText(): string;
    toHTML(): string;
    /**
     * Writes the frame's HTML rendering to a file.
     *
     * NOTE: `path` is written verbatim. This method is intended for
     * developer/test use; do not pass user-controlled paths.
     */
    image(path: string): void;
}
export {};
