import type { ApplyResult, Config, Profile } from "../types/index.js"; export declare const DEFAULT_LIST_LIMIT = 20; export declare const MAX_LIST_LIMIT = 100; export interface Page { items: T[]; total: number; limit: number; cursor: number; next_cursor: number | null; has_more: boolean; } export interface PagedPayload extends Page { hint?: string; } export declare function parseLimit(value: unknown, fallback?: number, max?: number): number; export declare function parseCursor(value: unknown): number; export declare function paginate(items: T[], opts?: { limit?: unknown; cursor?: unknown; defaultLimit?: number; maxLimit?: number; }): Page; export declare function pagedPayload(items: T[], opts?: { limit?: unknown; cursor?: unknown; defaultLimit?: number; maxLimit?: number; hint?: string; }): PagedPayload; export declare function truncateText(value: string | null | undefined, max?: number): string; export declare function truncateMiddle(value: string | null | undefined, max?: number): string; export interface ConfigSummary { id: string; slug: string; name: string; category: Config["category"]; agent: Config["agent"]; kind: Config["kind"]; format: Config["format"]; target_path: string | null; output_count: number; version: number; is_template: boolean; updated_at?: string; description?: string | null; tags?: string[]; outputs?: Config["outputs"]; } export declare function summarizeConfig(config: Config, opts?: { verbose?: boolean; }): ConfigSummary; export interface ProfileSummary { id: string; slug: string; name: string; description?: string | null; selector_count: number; variable_count: number; created_at?: string; updated_at?: string; selectors?: Profile["selectors"]; variables?: Profile["variables"]; } export declare function summarizeProfile(profile: Profile, opts?: { verbose?: boolean; }): ProfileSummary; export interface ApplyResultSummary { config_id: string; path: string; dry_run: boolean; changed: boolean; agent?: ApplyResult["agent"]; transform?: ApplyResult["transform"]; output_count: number; outputs?: ApplyResultSummary[]; } export declare function summarizeApplyResult(result: ApplyResult): ApplyResultSummary; //# sourceMappingURL=compact-output.d.ts.map