export declare type Value = Record | string | number | boolean | Symbol | Array; export declare type Scope = 'environment' | 'workspace' | 'invocation' | 'team'; interface ScopeOption { /** * Scope in which the storage operation will be scoped to. Defaults to 'environment'. */ scope?: Scope; /** * Additional property for team scope to further limit the scope. */ teamScope?: string; } interface SecureOption { /** * Should the record be secure/encrypted. Defaults to false */ secure?: boolean; } interface TTLOption { /** * Time to live (in seconds) how long that record should be stored for. Leave it unspecified to store the record permanently. Defaults to no TTL. */ ttl?: number; } interface DenyUpdateOverwriteOption { /** * By default existing records will be overwritten, set this option true if you wish to prevent overwriting records with the same key. Defaults to 'false'. */ denyUpdateOverwrite?: boolean; } export interface RetryOption { /** * Options for retrying the API call when the request gets rate limited (429 response). * * Default: enabled */ retryOn429?: { /** * Whether the API call is automatically retried when the request gets rate limited (429 response). * * Default: true */ enabled?: boolean; /** * Whether to log every retried request attempt in the console. * * Default: true */ verbose?: boolean; }; } export interface CommonOptions extends ScopeOption, SecureOption, TTLOption, DenyUpdateOverwriteOption, RetryOption { } export interface GetRecordOptions extends ScopeOption, RetryOption { } export interface SetRecordOptions extends ScopeOption, SecureOption, TTLOption, DenyUpdateOverwriteOption, RetryOption { } export interface RecordExistsOptions extends ScopeOption, RetryOption { } export interface DeleteRecordOptions extends ScopeOption, RetryOption { } export interface GetKeysOfAllRecords extends ScopeOption, RetryOption { /** * Last evaluated key used for marking the continuation point for paging. */ lastEvaluatedKey?: string; } export interface GetKeysOfAllRecordsResponse { /** * List of keys. */ keys: string[]; /** * If there are more keys available that cannot be returned with this request then this property will contain the last key that was returned. * To continue with paging, if this key is present, pass the value of this property in the new get all keys request as an option with the same name. */ lastEvaluatedKey?: string; } export {}; //# sourceMappingURL=types.d.ts.map