export interface PaginationParams { page?: number; pageSize?: number; } export interface PaginatedResult { data: T[]; pagination: { page: number; pageSize: number; totalCount: number; totalPages: number; hasMore: boolean; }; } /** * Applies client-side pagination to an array of results. * Use this for API endpoints that don't support server-side pagination. */ export declare function paginateArray(items: T[], params?: PaginationParams): PaginatedResult; /** * Extracts an array from a nested response object and paginates it. * Useful for responses like { CHAccountList: [...] } or { Groups: [...] } */ export declare function paginateNestedArray(response: Record, arrayKey: string, params?: PaginationParams): { data: Record; pagination: PaginatedResult["pagination"]; }; export declare function toolResponse(result: unknown): { content: { type: "text"; text: string; }[]; }; export declare function toolError(error: unknown): { content: { type: "text"; text: string; }[]; isError: boolean; };