import { MsgHdrs, Payload, QueuedIterator } from "../nats-base-client/core"; import { JetStreamClient, JetStreamManager, KV, KvCodec, KvCodecs, KvDeleteOptions, KvEntry, KvOptions, KvPutOptions, KvRemove, KvStatus, KvWatchInclude, KvWatchOptions, StoredMsg } from "./types"; import { ConsumerConfig, Placement, PurgeOpts, PurgeResponse, Republish, StorageType, StreamInfo } from "./jsapi_types"; import { JsMsg } from "./jsmsg"; export declare function Base64KeyCodec(): KvCodec; export declare function NoopKvCodecs(): KvCodecs; export declare function defaultBucketOpts(): Partial; export declare const kvOperationHdr = "KV-Operation"; export declare function validateKey(k: string): void; export declare function validateSearchKey(k: string): void; export declare function hasWildcards(k: string): boolean; export declare function validateBucket(name: string): void; export declare class Bucket implements KV, KvRemove { js: JetStreamClient; jsm: JetStreamManager; stream: string; bucket: string; direct: boolean; codec: KvCodecs; prefix: string; editPrefix: string; useJsPrefix: boolean; _prefixLen: number; constructor(bucket: string, js: JetStreamClient, jsm: JetStreamManager); static create(js: JetStreamClient, name: string, opts?: Partial): Promise; static bind(js: JetStreamClient, name: string, opts?: Partial): Promise; init(opts?: Partial): Promise; initializePrefixes(info: StreamInfo): void; bucketName(): string; subjectForBucket(): string; subjectForKey(k: string, edit?: boolean): string; fullKeyName(k: string): string; get prefixLen(): number; encodeKey(key: string): string; decodeKey(ekey: string): string; validateKey: typeof validateKey; validateSearchKey: typeof validateSearchKey; hasWildcards: typeof hasWildcards; close(): Promise; dataLen(data: Uint8Array, h?: MsgHdrs): number; smToEntry(sm: StoredMsg): KvEntry; jmToEntry(jm: JsMsg): KvEntry; create(k: string, data: Payload): Promise; update(k: string, data: Payload, version: number): Promise; put(k: string, data: Payload, opts?: Partial): Promise; get(k: string, opts?: { revision: number; }): Promise; purge(k: string, opts?: Partial): Promise; delete(k: string, opts?: Partial): Promise; purgeDeletes(olderMillis?: number): Promise; _deleteOrPurge(k: string, op: "DEL" | "PURGE", opts?: Partial): Promise; _doDeleteOrPurge(k: string, op: "DEL" | "PURGE", opts?: Partial): Promise; _buildCC(k: string | string[], content: KvWatchInclude, opts?: Partial): Partial; remove(k: string): Promise; history(opts?: { key?: string | string[]; headers_only?: boolean; }): Promise>; canSetWatcherName(): boolean; watch(opts?: KvWatchOptions): Promise>; keys(k?: string | string[]): Promise>; purgeBucket(opts?: PurgeOpts): Promise; destroy(): Promise; status(): Promise; } export declare class KvStatusImpl implements KvStatus { si: StreamInfo; cluster: string; constructor(si: StreamInfo, cluster?: string); get bucket(): string; get values(): number; get history(): number; get ttl(): number; get bucket_location(): string; get backingStore(): StorageType; get storage(): StorageType; get replicas(): number; get description(): string; get maxBucketSize(): number; get maxValueSize(): number; get max_bytes(): number; get placement(): Placement; get placementCluster(): string; get republish(): Republish; get streamInfo(): StreamInfo; get size(): number; get metadata(): Record; get compression(): boolean; }