import * as _angular_core from '@angular/core'; import { ResourceRef } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { ToastService } from '@ng-vagabond-lab/ng-dsv/ds/toast'; import { PlatformService } from '@ng-vagabond-lab/ng-dsv/platform'; import { Observable } from 'rxjs'; import { Store } from '@ng-vagabond-lab/ng-dsv/storage'; type ID = string | number | undefined | null; type Primitif = string | number | boolean | undefined | null; type JSONValue = Primitif | { [x: string]: JSONValue; } | Array | ApiDto; type JSONObject = { [x: string]: JSONValue; } | Array | ApiDto; type JSON = { [x: string]: JSON | Primitif; }; type Target = { target: { value: JSONObject; }; }; interface ApiDto { id?: ID; creationDate?: string; updatedDate?: string; deletedDate?: string; active?: boolean; } interface BaseUserTokenDto { jwt?: string; } interface OrderState { order: string; orderAsc?: boolean; } interface PageableDto { totalPages?: number; totalElements?: number; size?: number; content: T; number?: number; sort?: { empty: boolean; sorted: boolean; unsorted: boolean; }; pageable?: { offset: number; sort: { empty: boolean; sorted: boolean; unsorted: boolean; }; pageNumber: number; pageSize: number; paged: boolean; unpaged: boolean; }; first?: boolean; last?: boolean; numberOfElements?: number; empty?: boolean; } interface ApiFindBy { endPoint?: string; fields?: string; values?: string; first?: number; max?: number; order?: OrderState; } declare class ApiResourceService { url: _angular_core.WritableSignal; resource: ResourceRef; constructor(); static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵprov: _angular_core.ɵɵInjectableDeclaration>; } declare class ApiService { readonly httpClient: HttpClient; readonly toastService: ToastService; readonly platformService: PlatformService; load: _angular_core.WritableSignal; baseUrl: string; setBaseUrl(url: string): void; get(url: string, callback: (data: T) => void, callbackError?: () => void): void; post(url: string, data: TBody, callback?: (data: TResponse) => void, withCredentials?: boolean, callbackError?: () => void): void; put(url: string, data: TBody, callback?: (data: TResponse) => void, callbackError?: () => void): void; delete(url: string, callback: (data: T) => void, callbackError?: () => void): void; findById(endPoint: string, id: ID, callback: (data: T) => void): void; findBy(endPoint: string, fields: string, values: string, first: number, max: number, order: OrderState, callback: (data: T) => void): void; countBy(endPoint: string, fields: string, values: string, callback: (data: { count: number; }) => void): void; createOrUpdate(endPoint: string, data: T, callback: (data: T) => void): void; doSubscribe(url: string, observable: Observable, callback: (data: T) => void, callbackError?: () => void): void; info(url: string, data: JSONObject): void; error(url: string, error: JSONObject): void; isPlatformBrowser(): boolean; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } declare abstract class BaseSearchService { readonly apiService: ApiService; readonly platformService: PlatformService; datas: Store; page: _angular_core.WritableSignal; isLoading: _angular_core.WritableSignal; stopLoad: _angular_core.WritableSignal; search: _angular_core.WritableSignal; newIds: _angular_core.WritableSignal; lastUrl: _angular_core.WritableSignal; doLoad(url: string, search?: string, page?: number, nbPage?: number): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration, never>; static ɵprov: _angular_core.ɵɵInjectableDeclaration>; } export { ApiResourceService, ApiService, BaseSearchService }; export type { ApiDto, ApiFindBy, BaseUserTokenDto, ID, JSON, JSONObject, JSONValue, OrderState, PageableDto, Primitif, Target };