@promptbook/core 0.55.0-1 → 0.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { PromptResultUsageCounts } from './PromptResult';
1
+ import type { PromptResultUsageCounts } from '../PromptResult';
2
2
  /**
3
3
  * Helper of usage compute
4
4
  *
@@ -0,0 +1,9 @@
1
+ import type { UncertainNumber } from '../PromptResult';
2
+ /**
3
+ * Make UncertainNumber
4
+ *
5
+ * @param value
6
+ *
7
+ * @private utility for initializating UncertainNumber
8
+ */
9
+ export declare function uncertainNumber(value?: number | typeof NaN | undefined | null): UncertainNumber;
@@ -0,0 +1,10 @@
1
+ import type { PromptResultUsage } from '../PromptResult';
2
+ import type { UncertainNumber } from '../PromptResult';
3
+ /**
4
+ * Function usageToWorktime will take usage and estimate saved worktime in hours of reading / writing
5
+ *
6
+ * Note: This is an estimate based of theese sources:
7
+ * - https://jecas.cz/doba-cteni
8
+ * - https://www.originalnitonery.cz/blog/psani-vsemi-deseti-se-muzete-naucit-i-sami-doma
9
+ */
10
+ export declare function usageToWorktime(usage: PromptResultUsage): UncertainNumber;
@@ -1,7 +0,0 @@
1
- import type { PromptResultUsage } from './PromptResult';
2
- /**
3
- * Function addPromptResultUsage will add multiple usages into one
4
- *
5
- * Note: If you provide 0 values, it returns void usage
6
- */
7
- export declare function addPromptResultUsage(...usageItems: Array<PromptResultUsage>): PromptResultUsage;
@@ -1,7 +0,0 @@
1
- import type { PromptResultUsage } from './PromptResult';
2
- /**
3
- * Function addPromptResultUsage will add multiple usages into one
4
- *
5
- * Note: If you provide 0 values, it returns void usage
6
- */
7
- export declare function addPromptResultUsage(...usageItems: Array<PromptResultUsage>): PromptResultUsage;