/**
 * @module Cache
 */
import { type TestAPI, type SuiteAPI, type ExpectStatic, type beforeEach } from "vitest";
import { type IDatabaseCacheAdapter } from "../../../cache/contracts/_module.js";
import { type IReadableContext } from "../../../execution-context/contracts/_module.js";
import { type Promisable } from "../../../utilities/_module.js";
/**
 * IMPORT_PATH: `"@daiso-tech/core/cache/test-utilities"`
 * @group TestUtilities
 */
export type DatabaseCacheAdapterTestSuiteSettings = {
    expect: ExpectStatic;
    test: TestAPI;
    describe: SuiteAPI;
    beforeEach: typeof beforeEach;
    createAdapter: () => Promisable<IDatabaseCacheAdapter>;
    /**
     * @default
     * ```ts
     * import { ExecutionContext } from "@daiso-tech/core/execution-context"
     * import { NoOpExecutionContextAdapter } from "@daiso-tech/core/execution-context/no-op-execution-context-adapter"
     *
     * new ExecutionContext(new NoOpExecutionContextAdapter())
     * ```
     */
    context?: IReadableContext;
};
/**
 * The `databaseCacheAdapterTestSuite` function simplifies the process of testing your custom implementation of {@link IDatabaseCacheAdapter | `IDatabaseCacheAdapter`} with `vitest`.
 *
 * IMPORT_PATH: `"@daiso-tech/core/cache/test-utilities"`
 * @group TestUtilities
 * @example
 * ```ts
 * import { afterEach, beforeEach, describe, expect, test } from "vitest";
 * import Sqlite, { type Database } from "better-sqlite3";
 * import { databaseCacheAdapterTestSuite } from "@daiso-tech/core/cache/test-utilities";
 * import { KyselyCacheAdapter, type KyselyCacheAdapterTables } from "@daiso-tech/core/cache/kysely-cache-adapter";
 * import { Serde } from "@daiso-tech/core/serde";
 * import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
 * import { Kysely, SqliteDialect } from "kysely";
 *
 * describe("class: KyselyCacheAdapter", () => {
 *   let database: Database;
 *   let kysely: Kysely<KyselyCacheAdapterTables>;
 *
 *   beforeEach(() => {
 *       database = new Sqlite(":memory:");
 *       kysely = new Kysely({
 *          dialect: new SqliteDialect({
 *              database,
 *          }),
 *       });
 *   });
 *   afterEach(() => {
 *       database.close();
 *   });
 *   databaseCacheAdapterTestSuite({
 *       createAdapter: async () => {
 *           const adapter = new KyselyCacheAdapter({
 *               kysely,
 *               shouldRemoveExpiredKeys: false,
 *               serde: new Serde(new SuperJsonSerdeAdapter()),
 *           });
 *           await adapter.init();
 *           return adapter;
 *       },
 *       test,
 *       beforeEach,
 *       expect,
 *       describe,
 *    });
 * });
 * ```
 */
export declare function databaseCacheAdapterTestSuite(settings: DatabaseCacheAdapterTestSuiteSettings): void;
