import * as momento from '@gomomento/sdk'; import { Context, Option } from 'effect'; import * as Effect from 'effect/Effect'; import type { LazyArg } from 'effect/Function'; import type { MomentoClientError } from './lib/error.js'; export type MomentoClientConfigProps = { readonly authTokenEnvKey?: string; readonly loggerFactory?: momento.MomentoLoggerFactory; readonly configurationCtor?: (loggerFactory: momento.MomentoLoggerFactory) => momento.Configuration; readonly defaultTtlSeconds?: number; }; export declare const TAG = "MomentoClient"; export declare const DEFAULT_CACHE_NAME = "default-cache"; export declare const DEFAULT_MOMENTO_CLIENT_CONFIG_PROPS: Required; export type MomentoCacheClient = LazyArg>; export type MomentoClientFactory = (config: MomentoClientConfigProps) => MomentoCacheClient; export declare const defaultMomentoClientFactory: MomentoClientFactory; export type MomentoClientFactoryDeps = { readonly momentoClientProps: MomentoClientConfigProps; readonly momentoClientFactory: MomentoClientFactory; }; export declare const MomentoClientFactoryDeps: Context.Tag; export declare const defaultMomentoFactoryDeps: (self: Effect.Effect) => Effect.Effect>; export type MomentoClientDeps = { readonly makeMomentoClient: MomentoCacheClient; }; export declare const MomentoClientDeps: Context.Tag; export declare function MomentoSet(cacheName: string, key: string | Uint8Array, value: string | Uint8Array, ttlSeconds?: number): Effect.Effect; export declare function MomentoSetDefaultCache(key: string | Uint8Array, value: string | Uint8Array, ttlSeconds?: number): Effect.Effect; export declare function MomentoGet(cacheName: string, key: string | Uint8Array): Effect.Effect, MomentoClientError, MomentoClientDeps>; export declare function MomentoGetDefaultCache(key: string | Uint8Array): Effect.Effect, MomentoClientError, MomentoClientDeps>; export declare function MomentoDel(cacheName: string, key: string | Uint8Array): Effect.Effect; export declare function MomentoDelDefaultCache(key: string | Uint8Array): Effect.Effect; //# sourceMappingURL=index.d.ts.map