import type { Component } from "@earendil-works/pi-tui";
import { Container } from "@earendil-works/pi-tui";
import type { EntryRenderer, EntryRendererOptions } from "../../../core/extensions/types.ts";
import type { CustomEntry } from "../../../core/session-manager.ts";
/**
 * Component that renders a custom session entry from extensions.
 * The host owns transcript spacing; renderer output should provide only its content.
 */
export declare class CustomEntryComponent extends Container {
    private entry;
    private renderer;
    private customComponent?;
    private _expanded;
    constructor(entry: CustomEntry<unknown>, renderer: EntryRenderer);
    /** Rendered entirely by children that this class rebuilds on every state change. */
    getRenderRevision(): number | undefined;
    get customEntry(): CustomEntry<unknown>;
    hasContent(): boolean;
    setExpanded(expanded: boolean): void;
    invalidate(): void;
    private rebuild;
}
/**
 * Index of the card `entry` replaces in place: the transcript card directly before
 * `insertIndex` (skipping only `isTransient` children such as a status line), when it
 * renders an entry of the same custom type and the renderer's `replaces` option accepts
 * the pair. Returns -1 when `entry` becomes a new card.
 */
export declare function replacedEntryCardIndex(children: readonly Component[], insertIndex: number, entry: CustomEntry<unknown>, options: EntryRendererOptions | undefined, isTransient?: (child: Component) => boolean): number;
//# sourceMappingURL=custom-entry.d.ts.map