export declare enum Types {
    ACTION_EXECUTION = "nango.jobs.actionExecution",
    ACTION_SUCCESS = "nango.orch.action.success",
    ACTION_FAILURE = "nango.orch.action.failure",
    ACTION_TRACK_RUNTIME = "action_track_runtime",
    AUTH_GET_ENV_BY_CONNECT_SESSION = "nango.auth.getEnvByConnectSession",
    AUTH_GET_ENV_BY_SECRET_KEY = "nango.auth.getEnvBySecretKey",
    AUTH_GET_ENV_BY_CONNECT_SESSION_OR_SECRET_KEY = "nango.auth.getEnvByConnectSessionOrSecretKey",
    AUTH_GET_ENV_BY_CONNECT_SESSION_OR_PUBLIC_KEY = "nango.auth.getEnvByConnectSessionOrPublicKey",
    AUTH_SESSION = "nango.auth.session",
    GET_CONNECTION = "nango.server.getConnection",
    JOBS_DELETE_SYNCS_DATA = "nango.jobs.cron.deleteSyncsData",
    JOBS_DELETE_SYNCS_DATA_DELETES = "nango.jobs.cron.deleteSyncsData.deletes",
    JOBS_DELETE_SYNCS_DATA_JOBS = "nango.jobs.cron.deleteSyncsData.jobs",
    JOBS_DELETE_SYNCS_DATA_RECORDS = "nango.jobs.cron.deleteSyncsData.records",
    JOBS_DELETE_SYNCS_DATA_SCHEDULES = "nango.jobs.cron.deleteSyncsData.schedules",
    LOGS_LOG = "nango.logs.log",
    PERSIST_RECORDS_COUNT = "nango.persist.records.count",
    PERSIST_RECORDS_SIZE_IN_BYTES = "nango.persist.records.sizeInBytes",
    POST_CONNECTION_SCRIPT_EXECUTION = "nango.jobs.postConnectionScriptExecution",
    POST_CONNECTION_SCRIPT_RUNTIME = "nango.jobs.postConnectionScriptRuntime",
    POST_CONNECTION_SCRIPT_SUCCESS = "nango.orch.postConnectionScript.success",
    POST_CONNECTION_SCRIPT_FAILURE = "nango.orch.postConnectionScript.failure",
    PROXY = "nango.server.proxyCall",
    PROXY_SUCCESS = "nango.server.proxy.success",
    PROXY_FAILURE = "nango.server.proxy.failure",
    REFRESH_TOKENS = "nango.server.cron.refreshTokens",
    REFRESH_TOKENS_FAILED = "nango.server.cron.refreshTokens.failed",
    REFRESH_TOKENS_SUCCESS = "nango.server.cron.refreshTokens.success",
    RUNNER_SDK = "nango.runner.sdk",
    RUNNER_INVALID_ACTION_INPUT = "nango.runner.invalidActionInput",
    RUNNER_INVALID_ACTION_OUTPUT = "nango.runner.invalidActionOutput",
    RUNNER_INVALID_SYNCS_RECORDS = "nango.runner.invalidSyncsRecords",
    SYNC_EXECUTION = "nango.jobs.syncExecution",
    SYNC_TRACK_RUNTIME = "sync_script_track_runtime",
    SYNC_SUCCESS = "nango.orch.sync.success",
    SYNC_FAILURE = "nango.orch.sync.failure",
    WEBHOOK_EXECUTION = "nango.jobs.webhookExecution",
    WEBHOOK_TRACK_RUNTIME = "webhook_track_runtime",
    WEBHOOK_SUCCESS = "nango.orch.webhook.success",
    WEBHOOK_FAILURE = "nango.orch.webhook.failure",
    ORCH_TASKS_CREATED = "nango.orch.tasks.created",
    ORCH_TASKS_STARTED = "nango.orch.tasks.started",
    ORCH_TASKS_SUCCEEDED = "nango.orch.tasks.succeeded",
    ORCH_TASKS_FAILED = "nango.orch.tasks.failed",
    ORCH_TASKS_EXPIRED = "nango.orch.tasks.expired",
    ORCH_TASKS_CANCELLED = "nango.orch.tasks.cancelled"
}
export declare function increment(metricName: Types, value?: number, dimensions?: Record<string, string | number>): void;
export declare function decrement(metricName: Types, value?: number, dimensions?: Record<string, string | number>): void;
export declare function gauge(metricName: Types, value?: number): void;
export declare function duration(metricName: Types, value: number): void;
export declare function time<T, E, F extends (...args: E[]) => Promise<T>>(metricName: Types, func: F): F;
