import PocketbaseSvelte, { type RecordService, type CollectionService, type CommonOptions } from 'pocketbase-sveltekit'; import type { Models, Collections } from '@velastack/pocketbase'; export type { AuthCollectionModel, BaseCollectionModel, ViewCollectionModel } from 'pocketbase-sveltekit'; /** `pb.collections`, narrowed against the generated `Collections` map. */ export declare class CollectionsCrudService extends CollectionService { getOne(id: C, options?: CommonOptions): Promise; update(id: C, bodyParams?: { [key: string]: any; } | FormData, options?: CommonOptions): Promise; delete(id: keyof Collections, options?: CommonOptions): Promise; } /** A PocketBase client whose `collection()` returns records typed by the generated `Models`. */ export declare class Client extends PocketbaseSvelte { collections: CollectionsCrudService; collection(idOrName: TId): RecordService<[OverrideType] extends [never] ? Models[TId] : OverrideType>; } declare global { namespace App { interface Locals { pb: Client; admin: Client; /** Only set when the app has a `teams` collection. */ team?: string; /** Only set when the app has a `teams` collection. */ role?: string; } } } //# sourceMappingURL=client.d.ts.map