import { StorageBucket, StorageBucketManager, StorageBucketOptions } from "./types";
export interface DurableStorageBucketConfig {
    getDurableStorageBucketOrigin?(): string;
}
export interface DurableStorageBucketOptions extends StorageBucketOptions {
    name: string;
}
export declare class DurableStorageBucket implements StorageBucket {
    caches: CacheStorage;
    name: string;
    private options;
    constructor(options: DurableStorageBucketOptions);
    estimate(): Promise<StorageEstimate>;
    expires(): Promise<number | undefined>;
    getDirectory(): Promise<FileSystemDirectoryHandle>;
    persist(): Promise<boolean>;
    persisted(): Promise<boolean>;
    setExpires(expires: number): Promise<void>;
}
export declare class DurableStorageBucketManager implements StorageBucketManager {
    private buckets;
    delete(name: string): Promise<void>;
    keys(): Promise<string[]>;
    open(name: string, options?: StorageBucketOptions): Promise<StorageBucket>;
}
export declare const storageBuckets: DurableStorageBucketManager;
