/** * @since 2.0.0 */ import { Comonad2C } from './Comonad' import { Functor2 } from './Functor' import { Monoid } from './Monoid' /** * @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 declare type URI = typeof URI declare module './HKT' { 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: Traced B>) => Traced /** * Use [`Functor`](#functor) instead. * * @category zone of death * @since 2.0.0 * @deprecated */ export declare const traced: Functor2