import { ClientSession } from 'mongodb';
import { PaginatedEncryptedCredentialRecordsType, PaginationOptionsType } from '@learncard/types';
export declare const INDEX_TTL: number;
export declare const getIndexHashKey: (did: string) => string;
export declare const getIndexFieldKey: (query: Record<string, any>, paginationOptions: PaginationOptionsType & {
    sort: "newestFirst" | "oldestFirst";
}, includeAssociatedDids?: boolean) => string;
export declare const getCachedIndexPageForDid: (did: string, query: Record<string, any>, paginationOptions: PaginationOptionsType & {
    sort: "newestFirst" | "oldestFirst";
}, includeAssociatedDids?: boolean) => Promise<PaginatedEncryptedCredentialRecordsType | null | undefined>;
export declare const setCachedIndexPageForDid: (did: string, query: Record<string, any>, paginationOptions: PaginationOptionsType & {
    sort: "newestFirst" | "oldestFirst";
}, page: PaginatedEncryptedCredentialRecordsType, includeAssociatedDids?: boolean) => Promise<[Error | null, any][] | null>;
export declare const deleteCachedIndexPageForDid: (did: string, query: Record<string, any>, paginationOptions: PaginationOptionsType & {
    sort: "newestFirst" | "oldestFirst";
}, includeAssociatedDids?: boolean) => Promise<number>;
export declare const flushIndexCacheForDid: (did: string, includeAssociatedDids?: boolean, session?: ClientSession) => Promise<number | undefined>;
//# sourceMappingURL=indexPlane.d.ts.map