import { Decimal } from "decimal.js"; import type { KisApiMetadata, StockSignType } from "./types.js"; export type AnyRecord = Record; export declare function asDecimal(value: unknown, fallback?: Decimal.Value): Decimal; export declare function asOptionalDecimal(value: unknown): Decimal | null; export declare function asInt(value: unknown, fallback?: number): number; export declare function asBool(value: unknown): boolean; export declare function safeDivide(a: Decimal.Value, b: Decimal.Value): Decimal; export declare function toKstDate(value: string, format?: "date" | "datetime" | "time"): Date; export declare function parseKisTokenDate(value: string): Date; export declare function formatDate(date: Date): string; export declare function formatTime(date: Date): string; export declare function signFromCode(code: unknown): StockSignType; export declare function apiMeta(data: AnyRecord, response?: Response): KisApiMetadata; export declare function output(data: AnyRecord, key?: string): T; export declare function outputArray(data: AnyRecord, key: string): T[]; export declare function compactRecord(record: T): T; export declare function sleep(ms: number): Promise; export declare function normalizeDateInput(value: Date | string | undefined, fallback?: Date): Date; export declare function mergeDecimal(values: Iterable): Decimal;