import { AxiosResponse } from 'axios'; import { Config } from './config'; import Request from './request'; import { CasdoorResponse } from './util'; export interface Resource { owner: string; name: string; createdTime?: string; user?: string; provider?: string; application?: string; tag?: string; parent?: string; fileName?: string; fileType?: string; fileFormat?: string; fileSize?: number; url?: string; description?: string; fullFilePath?: string; } export declare class ResourceSDK { private config; private readonly request; constructor(config: Config, request: Request); uploadResource(resource: Resource, psotFile: any): Promise, any>>; uploadResourceEx(user: string, tag: string, parent: string, fullFilePath: string, file: any, createdTime?: string, description?: string): Promise, any>>; getPaginationResources(owner: string, user: string, field: string, value: string, pageSize: number, page: number, sortField: string, sortOrder: string): Promise, any>>; getResourceEx(owner: string, name: string): Promise, any>>; getResources(owner: string, user: string, field: string, value: string, sortField: string, sortOrder: string): Promise, any>>; getResource(id: string): Promise, any>>; modifyResource(method: string, resource: Resource): Promise, any>>; addResource(resource: Resource): Promise, any>>; updateResource(resource: Resource): Promise, any>>; deleteResource(resource: Resource): Promise, any>>; deleteResourceWithTag(resource: Resource, tag: string): Promise, any>>; }