@seasketch/geoprocessing
Version:
Geoprocessing and reporting framework for SeaSketch 2.0
41 lines (40 loc) • 1.37 kB
TypeScript
import { Datasource, Geography } from "../../src/index.js";
export interface PrecalcSubsetAnswer {
subset: string;
}
export declare function precalcSubsetQuestion(): Promise<PrecalcSubsetAnswer>;
export interface PrecalcAnswers {
precalcWhichDs: "list" | "all";
precalcWhichGeos: "list" | "all";
}
export declare function precalcWhichDsQuestion(numDs: number): Promise<Pick<PrecalcAnswers, "precalcWhichDs">>;
export interface PrecalcGeosAnswers {
precalcWhichGeos: "list" | "all";
}
export declare function precalcWhichGeosQuestion(): Promise<Pick<PrecalcAnswers, "precalcWhichGeos">>;
export interface DatasourcesAnswers {
datasources: string[];
}
export declare function datasourcesQuestion(datasources: Datasource[]): Promise<DatasourcesAnswers>;
export declare function getDatasourcesQuestion(datasources: Datasource[]): Promise<{
choices: {
value: string;
name: string;
}[];
type: string;
name: string;
message: string;
}>;
export interface GeographiesAnswers {
geographies: string[];
}
export declare function geographiesQuestion(geographies: Geography[]): Promise<GeographiesAnswers>;
export declare function getGeographiesQuestion(geographies: Geography[]): Promise<{
choices: {
value: string;
name: string;
}[];
type: string;
name: string;
message: string;
}>;