export declare function set(key: string, value: any): Promise<void>;
export declare function get<T = any>(key: string): Promise<T | undefined>;
export declare function del(key: string): Promise<void>;
export declare function mset(keys: string[], values: any[]): Promise<void>;
/**
 * Gets values in the same order as the requested keys.
 *
 * Unlike the former unordered PostgREST query, this result has exactly one
 * slot per requested key. A missing key is represented by `undefined`, just
 * like `get`, and duplicate requested keys produce duplicate result slots.
 */
export declare function mget<T = any>(keys: string[]): Promise<Array<T | undefined>>;
export declare function mdel(keys: string[]): Promise<void>;
export declare function getByPrefix<T = any>(prefix: string): Promise<T[]>;
export declare function getByPrefixWithKeys<T = any>(prefix: string): Promise<Array<{
    key: string;
    value: T;
}>>;
export declare function createIfAbsent(key: string, value: any): Promise<{
    created: boolean;
    error?: string;
}>;
export declare function deleteKey(key: string): Promise<void>;
export declare function getValue<T = any>(key: string): Promise<T | null>;
export declare function listByPrefix<T = any>(prefix: string): Promise<Array<{
    key: string;
    value: T;
}>>;
export declare function deleteKeyIfTokenMatches(key: string, token: string): Promise<boolean>;
//# sourceMappingURL=kv-store.d.ts.map