import type { AnyFunction } from '../mod.ts'; /** * Returns function that calls original function only once. * All next calls will return result from first call. * @param fn Function. * @returns New wrapper function. */ export declare function once(fn: T): (this: ThisParameterType, ...args: Parameters) => ReturnType;