/**
 * Typed render contracts — table (column-schema-driven rows).
 *
 * Part of the Human Render Contract (Epic T10114, ADR-077). The table shape is
 * the canonical wire format for tabular CLI output — presenters consume the
 * schema to compute widths, headers, and per-cell formatting.
 *
 * @epic T10114
 * @task T10139
 */
/**
 * Runtime type guard for `TableResponse<T>`.
 *
 * Checks the envelope shape only — does not inspect row payloads against `T`.
 *
 * @param value — candidate value to inspect.
 * @returns `true` iff `value` matches the `TableResponse<T>` envelope shape.
 */
export function isTableResponse(value) {
    if (typeof value !== 'object' || value === null)
        return false;
    const v = value;
    if (!Array.isArray(v.rows))
        return false;
    if (typeof v.total !== 'number')
        return false;
    const schema = v.schema;
    if (typeof schema !== 'object' || schema === null)
        return false;
    return Array.isArray(schema.columns);
}
//# sourceMappingURL=table.js.map