import { type Component, type Focusable } from "../tui"; declare const secretValueIssuer: unique symbol; /** * A one-shot secret transfer handle. The contained value is cleared immediately * after it is consumed and cannot be read through any other public API. */ export declare class SecretValue { #private; /** @internal SecretInput is the sole issuer of usable SecretValue handles. */ constructor(value: string, issuer: typeof secretValueIssuer); consume(): string; } /** * A single-line masked input for credentials and other write-only secrets. * * The editing behavior follows Input, but render output is derived only from * grapheme counts; the backing characters are never returned or rendered. */ export declare class SecretInput implements Component, Focusable { #private; readonly placeholder: string; onSubmit?: (value: SecretValue) => void; onEscape?: () => void; /** Focusable interface - set by TUI when focus changes. */ focused: boolean; constructor(options?: { placeholder?: string; }); handleInput(data: string): void; clear(): void; dispose(): void; invalidate(): void; render(width: number): string[]; } export {};