import { Duration } from './types/helpers.js';
import 'typescript-log';

/**
 * Resolve a TTL value to a number in milliseconds
 */
declare function resolveTtl(ttl?: Duration, defaultTtl?: Duration): number | undefined;
/**
 * Useful for creating a return value that can be destructured
 * or iterated over.
 *
 * See : https://antfu.me/posts/destructuring-with-object-or-array
 */
declare function createIsomorphicDestructurable<T extends Record<string, unknown>, A extends readonly any[]>(obj: T, arr: A): T & A;

export { createIsomorphicDestructurable, resolveTtl };
