/** * log10x_clickhouse_census: where a ClickHouse cluster's CPU goes, read from its * own system tables with the credentials in the environment. Read only. */ import { z } from 'zod'; import { type ChCreds, type ChQuery } from '../lib/clickhouse-rows-tick.js'; import { type ChassisEnvelope } from '../lib/chassis-envelope.js'; export declare const clickhouseCensusSchema: { days: z.ZodDefault; database: z.ZodDefault; table: z.ZodDefault; cluster: z.ZodOptional; view: z.ZodDefault>; }; export interface ClickhouseCensusArgs { days?: number; database?: string; table?: string; cluster?: string; view?: 'markdown' | 'summary'; } export interface ClickhouseCensusDeps { /** Undefined reads CLICKHOUSE_URL and its credentials from the environment; null means none. */ creds?: ChCreds | null; ch?: ChQuery; nowMs?: () => number; } /** ClickHouse Cloud spreads the system logs over replicas; a self-managed node does not need the wrapper. */ export declare function defaultCluster(url: string): string | undefined; export declare function executeClickhouseCensus(args: ClickhouseCensusArgs, deps?: ClickhouseCensusDeps): Promise;