/**
 * 网络文件，用于兼容以前的文件服务，以及临时缓存
 */
export interface WebFile {
    id: number;
    serviceId: string;
    type: string;
    path: string;
    hash: string;
    createdBy: string;
    updatedBy: string;
    createdTime: string;
    updatedTime: string;
    content: string;
}

declare const service: {
    loadFiles: ({
        query: {
            serviceId: string,
            type: string,
            path: string,
        },
    }) => Promise<Array<WebFile>>,
    loadFile: ({
        query: {
            serviceId: string,
            path: string,
        },
    }) => Promise<WebFile>,
    createFile: ({
        body: {
            serviceId: string,
            type: string,
            path: string,
            content: string,
        },
    }) => Promise<WebFile>,
    updateFile: ({
        body: {
            serviceId: string,
            path: string,
            content: string,
        },
    }) => Promise<WebFile>,
    saveFile: ({
        body: {
            serviceId: string,
            type: string,
            path: string,
            content: string,
        },
    }) => Promise<WebFile>,
    deleteFile: ({
        body: {
            serviceId: string,
            path: string,
        },
    }) => Promise<WebFile>
};

export default service;
