import type { ConfigProvider } from '@adonisjs/core/types'; import { type RawCommonOptions, type CreateDriverResult, type L1CacheDriver, type CreateBusDriverResult, type L2CacheDriver } from 'bentocache/types'; /** * Create a new store */ export declare function store(options?: RawCommonOptions & { prefix?: string; }): Store; export declare class Store { #private; constructor(baseOptions?: RawCommonOptions & { prefix?: string; }); /** * Add a L1 layer to your store. This is usually a memory driver * for fast access purposes. */ useL1Layer(driver: ConfigProvider>): this; /** * Add a L2 layer to your store. This is usually something * distributed like Redis, DynamoDB, Sql database, etc. */ useL2Layer(driver: ConfigProvider>): this; /** * Add a bus to your store. It will be used to synchronize L1 layers between * different instances of your application. */ useBus(bus: ConfigProvider): this; /** * Create a config provider for the store */ entry(): ConfigProvider; }