/** * @barba/core/utils/helpers *

* ## Helpers * * - Update next page data * * @module core/utils/helpers * @preferred */ /***/ import { pathToRegexp as ptr } from 'path-to-regexp'; import { IResponse, ITransitionData } from '../defs'; /** * Update `data.next`, the title and the history */ export declare const update: (page: Promise, data: ITransitionData) => Promise; /** * Next tick */ export declare const nextTick: () => Promise; /** * Turn a route string such as `/user/:name` into a regular expression. * * Used for: * * - routes to ignore * - route transition resolution * * @see https://www.npmjs.com/package/path-to-regexp */ declare const pathToRegexp: typeof ptr; export { pathToRegexp };