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 { EnvironmentService } from '@ng-vagabond-lab/ng-dsv/environment'; import { PlatformService } from '@ng-vagabond-lab/ng-dsv/platform'; import { Observable } from 'rxjs'; 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; } type ID = string | number | undefined | null; type Primitif = string | number | boolean | undefined | null; interface BaseDto { id?: ID; } interface ApiDto extends BaseDto { creationDate?: string; updatedDate?: string; deletedDate?: string; active?: boolean; } 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 BaseUserTokenDto { jwt?: string; } interface OrderState { order: string; orderAsc?: boolean; } interface ApiFindBy { endPoint?: string; fields?: string; values?: string; first?: number; max?: number; order?: OrderState; } declare class ApiResourceService { readonly url: _angular_core.WritableSignal; readonly 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; readonly environmentService: EnvironmentService; readonly baseUrl: _angular_core.WritableSignal; readonly nbLoaded: _angular_core.WritableSignal; readonly blocked: _angular_core.WritableSignal; 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, toast?: string): void; doSubscribe(url: string, observable: Observable, callback: (data: T) => void, callbackError?: () => void): void; info(url: string, data: JSONObject | null): void; error(url: string, error: JSONObject): void; static ɵfac: _angular_core.ɵɵFactoryDeclaration; static ɵprov: _angular_core.ɵɵInjectableDeclaration; } export { ApiResourceService, ApiService }; export type { ApiDto, ApiFindBy, BaseDto, BaseUserTokenDto, ID, JSON, JSONObject, JSONValue, OrderState, PageableDto, Primitif, Target };