T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/lavocat.quebec/private_html/node_modules/effect/dist/dts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/lavocat.quebec/private_html/node_modules/effect/dist/dts/MetricHook.d.ts
/**
 * @since 2.0.0
 */
import type { LazyArg } from "./Function.js";
import type * as MetricKey from "./MetricKey.js";
import type * as MetricState from "./MetricState.js";
import type { Pipeable } from "./Pipeable.js";
import type * as Types from "./Types.js";
/**
 * @since 2.0.0
 * @category symbols
 */
export declare const MetricHookTypeId: unique symbol;
/**
 * @since 2.0.0
 * @category symbols
 */
export type MetricHookTypeId = typeof MetricHookTypeId;
/**
 * @since 2.0.0
 * @category models
 */
export interface MetricHook<in In, out Out> extends MetricHook.Variance<In, Out>, Pipeable {
    get(): Out;
    update(input: In): void;
    modify(input: In): void;
}
/**
 * @since 2.0.0
 */
export declare namespace MetricHook {
    /**
     * @since 2.0.0
     * @category models
     */
    type Root = MetricHook<any, MetricState.MetricState.Untyped>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Untyped = MetricHook<any, any>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Counter<A extends (number | bigint)> = MetricHook<A, MetricState.MetricState.Counter<A>>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Gauge<A extends (number | bigint)> = MetricHook<A, MetricState.MetricState.Gauge<A>>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Frequency = MetricHook<string, MetricState.MetricState.Frequency>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Histogram = MetricHook<number, MetricState.MetricState.Histogram>;
    /**
     * @since 2.0.0
     * @category models
     */
    type Summary = MetricHook<readonly [number, number], MetricState.MetricState.Summary>;
    /**
     * @since 2.0.0
     * @category models
     */
    interface Variance<in In, out Out> {
        readonly [MetricHookTypeId]: {
            readonly _In: Types.Contravariant<In>;
            readonly _Out: Types.Covariant<Out>;
        };
    }
}
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const make: <In, Out>(options: {
    readonly get: LazyArg<Out>;
    readonly update: (input: In) => void;
    readonly modify: (input: In) => void;
}) => MetricHook<In, Out>;
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const counter: <A extends (number | bigint)>(key: MetricKey.MetricKey.Counter<A>) => MetricHook.Counter<A>;
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const frequency: (_key: MetricKey.MetricKey.Frequency) => MetricHook.Frequency;
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const gauge: {
    /**
     * @since 2.0.0
     * @category constructors
     */
    (key: MetricKey.MetricKey.Gauge<number>, startAt: number): MetricHook.Gauge<number>;
    /**
     * @since 2.0.0
     * @category constructors
     */
    (key: MetricKey.MetricKey.Gauge<bigint>, startAt: bigint): MetricHook.Gauge<bigint>;
};
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const histogram: (key: MetricKey.MetricKey.Histogram) => MetricHook.Histogram;
/**
 * @since 2.0.0
 * @category constructors
 */
export declare const summary: (key: MetricKey.MetricKey.Summary) => MetricHook.Summary;
/**
 * @since 2.0.0
 * @category utils
 */
export declare const onUpdate: {
    /**
     * @since 2.0.0
     * @category utils
     */
    <In, Out>(f: (input: In) => void): (self: MetricHook<In, Out>) => MetricHook<In, Out>;
    /**
     * @since 2.0.0
     * @category utils
     */
    <In, Out>(self: MetricHook<In, Out>, f: (input: In) => void): MetricHook<In, Out>;
};
/**
 * @since 3.6.5
 * @category utils
 */
export declare const onModify: {
    /**
     * @since 3.6.5
     * @category utils
     */
    <In, Out>(f: (input: In) => void): (self: MetricHook<In, Out>) => MetricHook<In, Out>;
    /**
     * @since 3.6.5
     * @category utils
     */
    <In, Out>(self: MetricHook<In, Out>, f: (input: In) => void): MetricHook<In, Out>;
};
//# sourceMappingURL=MetricHook.d.ts.map

CasperSecurity Mini