import type { ComponentChildren } from 'preact';
import type { EventEmitter } from '../../core/EventEmitter';
export interface ExpiryProviderProps {
    expiry?: number;
    eventEmitter?: EventEmitter;
    refreshExpiry?: () => Promise<number>;
    children?: ComponentChildren;
}
/**
 * Handles an expiry modal triggered when the user is afk
 * Does NOT work in Onboarding Components, since it refreshes on handler use
 * TODO: improve implementation and docs
 */
export declare const ExpiryProvider: ({ expiry: initialExpiry, eventEmitter, refreshExpiry, children, }: ExpiryProviderProps) => import("preact/jsx-runtime").JSX.Element;
export declare const useHasExpired: () => boolean;
