import { ColumnGeoJSONRecord, ColumnStatusCode, MacrostratRef, StratName, UnitLong } from '@macrostrat/api-types'; /** Re-exported from `@macrostrat/api-types`, which owns the column shape, so * the two can't drift. */ export type { ColumnStatusCode }; /** Which projects a column request covers: one project id, several, a * comma-joined string of ids (the form the API itself takes, and the form the * web app's project filter produces), or the literal `"all"`. There is no * implicit default — see `ColumnFetchOptions`. */ export type ColumnProjectScope = number | number[] | string; /** The "Core columns" composite — the curated set the `/columns` API falls back * to when no project is named. Its flattened membership is exactly * `macrostrat.core_project_ids()`, so passing it reproduces the old implicit * default while saying so on the wire. */ export declare const CORE_COLUMNS_PROJECT_ID = 14; interface FetchBaseOptions { fetch?: (url: string, options?: RequestInit) => Promise; } export interface ColumnFetchOptions extends FetchBaseOptions { apiBaseURL?: string; /** Which projects to fetch: one numeric id, several, a comma-joined string of * ids, or the literal `"all"`. Required — there is no implicit default. The * API's own default, the "Core columns" composite, is * `CORE_COLUMNS_PROJECT_ID`; pass that to ask for it. * * This used to send `all=true` when no project was given, which `/columns` * silently ignores: the request fell through to the API's core-projects * default, so whole projects (GBDB's 28,951 columns among them) were absent * with nothing to indicate it. Callers now say what they mean. */ projectID: ColumnProjectScope; statusCode?: ColumnStatusCode | ColumnStatusCode[]; format?: "geojson" | "topojson" | "geojson_bare"; } export declare function fetchAllColumns(options: ColumnFetchOptions): Promise; export declare function fetchLithologies(opts?: FetchBaseOptions): Promise; export declare function fetchIntervals(timescaleID: number | null, opts?: FetchBaseOptions): Promise; export declare function fetchEnvironments(opts?: FetchBaseOptions): Promise; /** Lithology attributes (grain size, bedforms, colours…), `/defs/lithology_attributes`. */ export declare function fetchLithAttributes(opts?: FetchBaseOptions): Promise; export declare function fetchTimescales(opts?: FetchBaseOptions): Promise; export declare function fetchRefs(refs: number[], opts?: FetchBaseOptions): Promise; export declare function fetchStratNames(names: number[], opts?: FetchBaseOptions): Promise; export type ColumnData = { units: UnitLong[]; columnID: number; }; export declare function fetchUnits(columns: number[], opts?: FetchBaseOptions): Promise; export declare function fetchColumnUnits(col_id: number, opts?: FetchBaseOptions): Promise;