import * as React from 'react'; export type CountdownStatus = 'counting' | 'idle'; interface Config { duration: number; status: CountdownStatus; interval?: number; onComplete?: () => void; } /** * A hook that performs a countdown for a specified duration and interval. * * - duration * The length of the countdown * - interval * The interval at which the countdown will tick down * - onComplete * A function to indicate when the countdown has reached zero, signaling to the * parent that `status` may be updated * - status * Whether the countdown should be in progress ("counting") or idle. An effect * triggers the countdown to begin when this value changes to "counting". */ export declare const useCountdown: (config: Config) => number; interface Props extends Config { message: (timeRemaining: number) => React.ReactNode; } export declare const Countdown: (props: Props) => import("react/jsx-runtime").JSX.Element; export {};