export interface AuthConfig { login: string; token: string; } export interface StoredCredentials { login: string; token: string; storedAt: string; } export interface GlobalOptions { location: string; language: string; limit: number; json: boolean; table: boolean; cache: boolean; login?: string; password?: string; debug?: boolean; } export interface RequestOptions { cacheKey?: string; ttl?: number; noCache?: boolean; } export interface ApiResult { items: T[]; totalCount: number; cost: number; cached: boolean; } export interface ApiResponse { success: boolean; command: string; data: T; error?: { code: string; message: string; }; meta?: { cached: boolean; count: number; location: string; timestamp: string; }; } export interface ColumnDef { key: string; label: string; align?: 'left' | 'right'; format?: (val: unknown) => string; }