@hasna/domains
Version:
Domain portfolio, registrar, marketplace, and DNS management for AI agents — CLI + MCP + HTTP API + SDK, shared account API and PostgreSQL
19 lines • 1.02 kB
TypeScript
import type { Domain, DomainStatus } from "../../db/domains.js";
export declare const TABLE_COLS: {
readonly name: 28;
readonly status: 14;
readonly expires: 12;
readonly registrar: 16;
};
export declare function pad(value: string, width: number): string;
export declare function formatDate(iso: string | null | undefined): string;
export declare function daysUntil(iso: string | null | undefined): string;
export declare const STATUS_COLORS: Record<DomainStatus, string>;
export declare function domainRowLabel(domain: Domain): string;
export declare function stripAnsi(value: string | undefined): string;
export type DomainFilter = "all" | "active" | "expiring" | "premium";
export declare const DOMAIN_FILTERS: DomainFilter[];
export declare function filterLabel(filter: DomainFilter): string;
export declare function resolveInitialFilter(initialStatus?: string): DomainFilter;
export declare function clampSelectedIndex(index: number, length: number): number;
//# sourceMappingURL=format.d.ts.map