export declare function compact(array: T[]): T[]; export declare function compact(object: T): Partial;