import type { DB } from "../index.js"; import { resources } from "../schema.js"; import type { ResourceAddInput, ResourceSearchInput, ResourceGetInput, ResourcesGetInput, ResourceUpdateInput, ResourceAddOutput, ResourceSearchOutput, ResourceGetOutput, ResourcesGetOutput, ResourceUpdateOutput } from "../../schemas/resources.js"; export declare function addResources(db: DB, input: ResourceAddInput): Promise; export declare function searchResources(db: DB, input: ResourceSearchInput): Promise; export declare function getResource(db: DB, input: ResourceGetInput): Promise; export declare function getResources(db: DB, input: ResourcesGetInput): Promise; export declare function updateResourceSnapshot(db: DB, input: { id?: number; uri?: string; snapshot: string; }): Promise; export declare function updateResourceSnapshots(db: DB, inputs: Array<{ resourceId: number; snapshot: string; }>): Promise<{ updated: number; }>; export declare function updateResource(db: DB, input: ResourceUpdateInput): Promise; export declare function getStaleResources(db: DB, staleHours: number): Promise<{ id: number; uri: string; type: string; retrievalMethod: typeof resources.retrievalMethod._.data | null; lastVerifiedAt: string | null; }[]>; export declare function getResourceById(db: DB, id: number): Promise<{ id: number; uri: string; type: string; description: string; snapshot: string | null; snapshotHash: string | null; retrievalMethod: { type: string; command?: string; url?: string; headers?: Record; } | null; lastVerifiedAt: string | null; retrievalCount: number; systemId: string | null; systemHash: string | null; createdAt: string; updatedAt: string; deletedAt: string | null; } | null>; export declare function deleteResources(db: DB, input: { ids?: number[]; uris?: string[]; soft?: boolean; }): Promise<{ deleted: number; }>; export declare function restoreResources(db: DB, ids: number[]): Promise<{ restored: number; }>; //# sourceMappingURL=resources.d.ts.map