import type { ServiceRequestOptions } from '../../typings/admin/comm/service';
/** BaseService：namespace + request + 标准 CRUD */
export declare class BaseService {
    namespace?: string;
    constructor(namespace?: string);
    request(options?: ServiceRequestOptions): Promise<unknown>;
    page(data?: Record<string, unknown>, options?: Pick<ServiceRequestOptions, 'timeoutMs'>): Promise<{
        list: Record<string, unknown>[];
        pagination: {
            page: number;
            size: number;
            total: number;
        };
    }>;
    list(data?: Record<string, unknown>, options?: Pick<ServiceRequestOptions, 'timeoutMs'>): Promise<Record<string, unknown>[]>;
    info(params: {
        id: number | string;
    }): Promise<Record<string, unknown>>;
    add(data: Record<string, unknown> | Record<string, unknown>[]): Promise<unknown>;
    update(data: Record<string, unknown> | Record<string, unknown>[]): Promise<unknown>;
    delete(data: {
        ids: Array<number | string>;
        force?: boolean;
    } | Array<number | string> | Array<Record<string, unknown>>): Promise<unknown>;
    restore(data: {
        ids: Array<number | string>;
    }): Promise<unknown>;
}
