import type { GetSourceByKeyInput, ListByDatasetInput, ListSnapshotsInput, PaginatedResponse, ReferenceDataSnapshotResponse, ReferenceDataSource } from "@artu-ai/shared"; import { CustomReferenceDataResource } from "./custom-reference-data"; /** * Reference Data Resource * * Provides read-only access to external reference datasets and * CRUD operations for user-managed custom sources via `.custom`. * * @example * ```typescript * // Built-in reference data * const data = await sdk.referenceData.list({ * datasetKey: "mex/postal-codes", * filter: { postal_code: { startsWith: "066" } }, * }); * * // Custom reference data * const source = await sdk.referenceData.custom.createSource({ * name: "Internal Sanctions List", * }); * ``` */ export declare class ReferenceDataResource { private readonly trpc; /** User-managed custom reference data sources */ readonly custom: CustomReferenceDataResource; /** * List rows from any reference dataset by its key, with optional filter and sort. */ list(input: ListByDatasetInput): Promise>>; /** * List all reference data source metadata (scrape history). */ listSources(): Promise; /** * Retrieve a single reference data source by its dataset key. */ getSource(input: GetSourceByKeyInput): Promise; /** * List available snapshots (point-in-time dates) for a dataset. */ listSnapshots(input: ListSnapshotsInput): Promise; }