/** * @license * Copyright 2022-2026 Matter.js Authors * SPDX-License-Identifier: Apache-2.0 */ import { ScopedStorage } from "#bdx/ScopedStorage.js"; import { BlobStorageDriver, Bytes } from "@matter/general"; import { FileDesignator } from "./FileDesignator.js"; /** * A FileDesignator that points to a persisted blob in a BlobStorageDriver. * If the file is supposed to be used for Bdx transfers where it could be requested by a client and is not actively * sent or the location to store a received file, you need to pass a ScopedStorage to allow automatic target detection * for BDX. * The logic supports providing names separated by "." to automatically create sub contexts. */ export declare class PersistedFileDesignator extends FileDesignator { #private; constructor(fd: string | Bytes | FileDesignator, storage: BlobStorageDriver | ScopedStorage, contexts?: string[]); exists(): import("@matter/general").MaybePromise; get blobName(): string; openBlob(): Promise; writeFromStream(stream: ReadableStream): import("@matter/general").MaybePromise; delete(): import("@matter/general").MaybePromise; } //# sourceMappingURL=PersistedFileDesignator.d.ts.map