/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MaybePromise, StorageDriver } from "@matter/general";
import { Val } from "@matter/protocol";
import { EndpointNumber } from "@matter/types";
import type { ClientNodeStore } from "./ClientNodeStore.js";
/**
 * Handles local storage persistence for client datasource caches.
 */
export declare class LocalWriter {
    #private;
    constructor(nodeStore: ClientNodeStore);
    persist(endpointNumber: EndpointNumber, behaviorId: string, values: Val.Struct): Promise<void>;
    /**
     * Persist values through a shared transaction.  The caller owns the transaction lifecycle.
     */
    persistInTransaction(tx: StorageDriver.Transaction, endpointNumber: EndpointNumber, behaviorId: string, values: Val.Struct): Promise<void>;
    erase(endpointNumber: EndpointNumber, behaviorId: string): MaybePromise<void>;
}
//# sourceMappingURL=LocalWriter.d.ts.map