import type { ContextTimed, ContextTimedInput } from '../types.js'; type ContextRemaining = Omit; type ContextAndParameters> = keyof ContextRemaining extends never ? [Partial?, ...P] : [Partial & ContextRemaining, ...P]; declare function setupTimedContext(delay: number, errorTimeoutConstructor: new () => Error, ctx: Partial): () => void; /** * Timed HOF * This overloaded signature is external signature */ declare function timed, R>(f: (ctx: C_, ...params: P) => R, delay?: number, errorTimeoutConstructor?: new () => Error): (...params: ContextAndParameters) => R; export default timed; export { setupTimedContext };