import type { Cell, Style } from "./elements.js";
export type Edges = {
    top: number;
    bottom: number;
    left: number;
    right: number;
};
export declare function resolveEdges(value: number | {
    top?: number;
    bottom?: number;
    left?: number;
    right?: number;
} | undefined): Edges;
/**
 * Compute the inner content area of a box after subtracting border and
 * padding. Shared between layout (positioning children) and rendering
 * (placing content cells) so they cannot drift apart.
 */
export declare function innerArea(style: Style | undefined, outerX: number, outerY: number, outerWidth: number, outerHeight: number): {
    x: number;
    y: number;
    width: number;
    height: number;
};
export declare function sameStyle(a: Cell, b: Cell): boolean;
export declare function escapeHtml(s: string): string;
