/** * Extracts and transforms a list of options from a JSON response using JSONPath expressions. * * @param data - The response data object from the data source. * @param jsonPathOptions - JSONPath expression to extract the list of option items. * @param jsonPathLabel - JSONPath expression to extract the label. Two forms are supported: * - Plain JSONPath, e.g. `"$.name"`. * - Template with `{...}` tokens, e.g. `"{$.code} - {$.name}"`, * where each token is resolved against the item with `jp.query`. * @param jsonPathValue - Optional JSONPath expression to extract the value. * If not provided, the full item is used as the value. * @returns An array of options formatted as `{ label, value }` objects. */ export declare const parseOptionsFromResponse: (data: any, jsonPathOptions: string, jsonPathLabel: string, jsonPathValue?: string) => any; /** * Extracts pagination data from a JSON response using JSONPath expressions. * Falls back to reading from meta object when jsonPathPagination is not provided. * * @param response - The response data object from the data source. * @param page - The current page number (used to calculate hasMore). * @param jsonPathPagination - Optional JSONPath expressions for pagination fields. * @param defaultSize - Default page size to use as fallback (default: 10). * @returns An object with pageSize, total, and hasMore. */ export declare const parsePaginationFromResponse: (response: any, page: number, jsonPathPagination?: { size?: string; total: string; totalPages?: string; }, defaultSize?: number) => { pageSize: number; total: number; hasMore: boolean; };