import { RecordService } from 'pocketbase'; import type { ListResult, RecordOptions, UnsubscribeFunc, RecordListOptions, RecordSubscription, RecordFullListOptions, RecordSubscribeOptions } from 'pocketbase'; import type { Options } from '../options.js'; import type { BodyParams } from '../body-params.js'; import type { PocketBaseTS } from '../Client.js'; import type { MergeObjects } from '../lib/type-utils.js'; import type { FilterHelpers } from '../lib/filter-sort-helper/filter.js'; import type { PBResponseType } from '../response.js'; import type { SchemaDeclaration } from '../schema.js'; export declare class RecordServiceTS = Options, _ViewOptions extends Options = Options, _SubscribeOptions extends Options = Options> extends RecordService { constructor(client: PocketBaseTS, idOrName: TKey & string); subscribe>(topic: string, callback: (data: RecordSubscription>) => void): Promise; subscribe>(topic: string, callback: (data: RecordSubscription>) => void, options: TOption): Promise; getFullList>(options?: TOptions): Promise>>; getList(page: number, perPage: number): Promise>; getList>(page: number, perPage: number, options: TOptions): Promise>>; getFirstListItem(filter: string | ((arg: FilterHelpers) => string)): Promise<_Type>; getFirstListItem>(filter: string | ((arg: FilterHelpers) => string), options: TOptions): Promise>; getOne(id: string): Promise<_Type>; getOne>(id: string, options: TOptions): Promise>; create(bodyParams?: Partial> | { [key: string]: any; } | FormData): Promise<_Type>; create>(bodyParams: Partial> | { [key: string]: any; } | FormData, options: TOptions): Promise>; update(id: string, bodyParams?: BodyParams<_Type> | { [key: string]: any; } | FormData): Promise<_Type>; update>(id: string, bodyParams: BodyParams<_Type> | { [key: string]: any; } | FormData, options: TOptions): Promise>; }