import { HttpAgent } from "@dfinity/agent";
import { allFiles, getBucketOfFileRes, getBucketsRes, getFileInfoRes } from "../types";
import { OtherFile, Result } from "./did/icsp_type";
export declare class ICSP {
    private readonly agent;
    private readonly icspCanisterId;
    private readonly ICSPActor;
    constructor(icspCanisterId: string, agent: HttpAgent);
    get_cycle_balance(): Promise<bigint>;
    init(): Promise<Result>;
    allFiles(): Promise<allFiles>;
    getFileInfo(key: string): Promise<getFileInfoRes>;
    getAllArFileKey(): Promise<string[]>;
    getAllIcFileKey(): Promise<string[]>;
    getAllIpfsFileKey(): Promise<string[]>;
    recordFile(OtherFile: OtherFile): Promise<unknown>;
    get_bucket_of_file(file_key: string): Promise<getBucketOfFileRes>;
    get_icsp_buckets(): Promise<getBucketsRes>;
    storeString(dataArr: string[], is_http_open: boolean, key_arr?: string[]): Promise<string[]>;
    private FileRead;
    storeBlob(files: File[], is_http_open: boolean, key_arr?: string[]): Promise<string[]>;
    store_file(metadata: (File | string)[], is_http_open: boolean, key_arr?: string[]): Promise<string[]>;
    update_data(key: string, new_data: string | File, is_http_open: boolean): Promise<boolean>;
    delete_file(file_key: string): Promise<unknown>;
    get_file(fileKey: string): Promise<Blob | string>;
    getVersion(): Promise<string>;
}
