interface CacheTTLOptions {
    ttlInMs: number;
}
export declare class CachedItem<T> {
    private cached;
    private valid;
    private readonly ttlOptions;
    private lastSetItemTimestamp;
    constructor({ ttl }?: {
        ttl?: CacheTTLOptions;
    });
    set(toCache: T): void;
    isValid(): boolean;
    get(): T;
    invalidate(): void;
}
export {};
