/** * @since 2.0.0 */ import { Comonad2C } from './Comonad.js'; import { Functor2 } from './Functor.js'; import { Monoid } from './Monoid.js'; /** * @category model * @since 2.0.0 */ export interface Traced { (p: P): A; } /** * Extracts a value at a relative position which depends on the current value. * * @since 2.0.0 */ export declare function tracks(M: Monoid

, f: (a: A) => P): (wa: Traced) => A; /** * Get the current position * * @since 2.0.0 */ export declare function listen(wa: Traced): Traced; /** * Get a value which depends on the current position * * @since 2.0.0 */ export declare function listens(f: (p: P) => B): (wa: Traced) => Traced; /** * Apply a function to the current position * * @since 2.0.0 */ export declare function censor

(f: (p: P) => P): (wa: Traced) => Traced; /** * @category instances * @since 2.0.0 */ export declare function getComonad

(monoid: Monoid

): Comonad2C; /** * `map` can be used to turn functions `(a: A) => B` into functions `(fa: F) => F` whose argument and return types * use the type constructor `F` to represent some computational context. * * @category mapping * @since 2.0.0 */ export declare const map: (f: (a: A) => B) => (fa: Traced) => Traced; /** * @category type lambdas * @since 2.0.0 */ export declare const URI = "Traced"; /** * @category type lambdas * @since 2.0.0 */ export type URI = typeof URI; declare module './HKT.js' { interface URItoKind2 { readonly [URI]: Traced; } } /** * @category instances * @since 2.7.0 */ export declare const Functor: Functor2; /** * @category mapping * @since 2.10.0 */ export declare const flap: (a: A) => (fab: import("./HKT.js").Kind2<"Traced", E, (a: A) => B>) => import("./HKT.js").Kind2<"Traced", E, B>; /** * Use [`Functor`](#functor) instead. * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const traced: Functor2;