import { CommonOptions, DeleteRecordOptions, GetKeysOfAllRecords, GetKeysOfAllRecordsResponse, GetRecordOptions, RecordExistsOptions, SetRecordOptions, Value } from "./types"; /** * Constructs new record storage instance with optional default options * @param options Default options */ export declare function createRecordStorage(options?: CommonOptions): RecordStorage; /** * Retrieves the record value from storage. Returns stored value or undefined when value is not found. * @param key Record key to retrieve * @param options Operation options */ export declare function getRecordValue(key: string, options?: GetRecordOptions): Promise; /** * Stores a record value in storage. If the record with the same key already exists the existing record will be overwritten, unless 'denyUpdateOverwrite' option is set to true. * @param key Record key to store * @param value Record value to store * @param options Operation options */ export declare function setRecordValue(key: string, value: Value, options?: SetRecordOptions): Promise; /** * Checks whether the record value for given key exists. * @param key Record key to check * @param options Operation options */ export declare function recordValueExists(key: string, options?: RecordExistsOptions): Promise; /** * Deletes record value from storage. This operation is idempotent, meaning that trying to delete an item that is already deleted does not result in an error. * @param key Record key to delete * @param options Operation options */ export declare function deleteRecordValue(key: string, options?: DeleteRecordOptions): Promise; /** * Retrieves keys of all record values. This request may return paged result, if there are more keys available then 'lastEvaluatedKey' property will be set that can be used to continue to fetch paged results. * @param options Operation options */ export declare function getKeysOfAllRecords(options?: GetKeysOfAllRecords): Promise; export declare class RecordStorage { private commonOptions; constructor(commonOptions?: CommonOptions); /** * Retrieves the record value from storage. Returns stored value or undefined when value is not found. * @param key Record key to retrieve * @param options Operation options */ getValue(key: string, options?: GetRecordOptions): Promise; /** * Stores a record value in storage. If the record with the same key already exists the existing record will be overwritten, unless 'denyUpdateOverwrite' option is set to true. * @param key Record key to store * @param value Record value to store * @param options Operation options */ setValue(key: string, value: Value, options?: SetRecordOptions): Promise; /** * Checks whether the record value for given key exists. * @param key Record key to check * @param options Operation options */ valueExists(key: string, options?: RecordExistsOptions): Promise; /** * Deletes record value from storage. This operation is idempotent, meaning that trying to delete an item that already is deleted does not result in an error. * @param key Record key to delete * @param options Operation options */ deleteValue(key: string, options?: DeleteRecordOptions): Promise; /** * Retrieves keys of all record values. * @param options Operation options */ getAllKeys(options?: GetKeysOfAllRecords): Promise; } //# sourceMappingURL=index.d.ts.map