/** * Terminal rendering for `dkg context-graph list` and `dkg context-graph info`. * * A row the node discovered on chain may be known only by its on-chain name * hash (`nameKnown === false`); its `id` and `name` are then the bare 32-byte * hash. The table leads with what a user needs to choose a graph (on-chain id, * access, publish policy, creation date, owner, on-chain state) and keeps the * full id last, because that id is the handle `dkg subscribe ` takes. */ /** Chain-public facts the daemon attaches to a list row (`row.onChain`). */ export interface ContextGraphListOnChainView { id: string; access: 'public' | 'private' | 'unknown'; publishPolicy: 'curated' | 'open' | 'unknown' | null; publishAuthority?: string | null; owner: string | null; createdAt: string | null; active: boolean | null; nameHash: string | null; observedAtBlock?: number; } /** The `/api/context-graph/list` row fields this renderer reads. */ export interface ContextGraphListRowView { id: string; uri?: string; name: string; description?: string; creator?: string; createdAt?: string; isSystem: boolean; subscribed?: boolean; synced?: boolean; accessPolicy?: string; onChainId?: string; nameKnown?: boolean; onChain?: ContextGraphListOnChainView; } /** The cleartext name, or null when the node knows the graph only by hash. */ export declare function contextGraphDisplayName(row: ContextGraphListRowView): string | null; export declare function contextGraphAccess(row: ContextGraphListRowView): string; /** Render the list table as lines, system graphs first, then by on-chain id. */ export declare function formatContextGraphListTable(rows: readonly ContextGraphListRowView[]): string[]; /** Render `dkg context-graph info` as lines. */ export declare function formatContextGraphInfo(row: ContextGraphListRowView): string[]; //# sourceMappingURL=context-graph-list-format.d.ts.map