declare module "ext:core/ops" { export function op_kv_open(args: [path: string, access: string, create: boolean]): Promise; export function op_kv_close(id: number): Promise; export function op_kv_list_keyspaces(id: number): Promise; export function op_kv_get_many( args: [db: number, keyspace: string, keys: Uint8Array[]], ): Promise<([value: Uint8Array, stamp: string] | null)[]>; export function op_kv_set( args: [db: number, keyspace: string, key: Uint8Array, value: Uint8Array], ): Promise; export function op_kv_delete(args: [db: number, keyspace: string, key: Uint8Array]): Promise; export function op_kv_list(args: { db: number; keyspace: string; start: Uint8Array | null; end: Uint8Array | null; prefix: Uint8Array | null; limit: number; reverse: boolean; }): Promise<[key: Uint8Array, value: Uint8Array, stamp: string][]>; export function op_kv_clear(args: [db: number, keyspace: string]): Promise; export function op_kv_atomic( args: [ db: number, ops: ( | { t: "check"; ks: string; key: Uint8Array; expected: string | null } | { t: "set"; ks: string; key: Uint8Array; value: Uint8Array } | { t: "delete"; ks: string; key: Uint8Array } )[], ], ): Promise<[ok: boolean, stamp: string | null]>; }