import { RestClient } from './rest'; import { IndexSignature, LightFile } from '../types/global'; import { Auth } from './auth'; import { GuillotinaCommonObject, GuillotinaGroup, GuillotinaUser, ItemColumn, ReturnSearchCompatible, SearchItem } from '../types/guillotina'; export declare class GuillotinaClient { rest: RestClient; pathContainsContainer: boolean; constructor(rest: RestClient, pathContainsContainer: boolean); getContainerFromPath(path: string): string; clearContainerFromPath(path: string): string; getContext(path: string): Promise; get(path: string): Promise; getQueryParamsSearchFunction(name: string): ({ start, pageSize, path, withDepth, }: { start?: number; pageSize?: number; path: string; withDepth?: boolean; }) => string[][]; getQueryParamsPostresql({ start, pageSize, withDepth, }: { start?: number; pageSize?: number; path?: string; withDepth?: boolean; }): string[][]; getQueryParamsElasticsearch({ start, pageSize, path, withDepth, }: { start?: number; pageSize?: number; path: string; withDepth?: boolean; }): string[][]; getItemsColumn(): ItemColumn[]; applyCompat(data: { items: T[]; items_total: number; }): ReturnSearchCompatible; search(path: string, params: string | IndexSignature, container?: boolean, prepare?: boolean, signal?: AbortSignal): Promise>; canido(path: string, permissions: string | string[]): Promise; createObject(path: string, data: unknown): Promise; cleanPath(path: string): string; delete(path: string, data: unknown): Promise; create(path: string, data: unknown): Promise; post(path: string, data: unknown): Promise; patch(path: string, data: unknown): Promise; upload(path: string, file: LightFile): Promise; download(path: string): Promise; getTypeSchema(path: string, name: string): Promise; getAddons(path: string): Promise; installAddon(path: string, key: string): Promise; removeAddon(path: string, key: string): Promise; getGroups(path: string): Promise; getUsers(path: string): Promise; getPrincipals(path: string): Promise<{ groups: GuillotinaGroup[]; users: GuillotinaUser[]; }>; getRoles(path: string): Promise; getAllPermissions(path: string): Promise; getTypes(path: string): Promise; } export declare function getClient(url: string, container: string, auth: Auth): GuillotinaClient; export declare const lightFileReader: (file: File) => Promise;