@agentshouse/app-bridge 0.1.0-caae3da69c1c2 → 0.1.0-cac2ee656ded8

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.
Files changed (113) hide show
  1. package/README.md +9 -9
  2. package/dist/index.d.ts +571 -18
  3. package/dist/mdmodel/body.d.ts +84 -0
  4. package/dist/mdmodel/built-in.d.ts +3 -0
  5. package/dist/mdmodel/crockford.d.ts +3 -0
  6. package/dist/mdmodel/definition.d.ts +21 -10
  7. package/dist/mdmodel/document.d.ts +15 -8
  8. package/dist/mdmodel/event.d.ts +76 -0
  9. package/dist/mdmodel/facts.d.ts +14 -0
  10. package/dist/mdmodel/fields.d.ts +1 -1
  11. package/dist/mdmodel/house-model.d.ts +826 -0
  12. package/dist/mdmodel/house-references.d.ts +3 -0
  13. package/dist/mdmodel/index.d.ts +35 -13
  14. package/dist/mdmodel/kinds.d.ts +17 -0
  15. package/dist/mdmodel/markdown.d.ts +74 -0
  16. package/dist/mdmodel/paths.d.ts +10 -1
  17. package/dist/mdmodel/pattern.d.ts +9 -0
  18. package/dist/mdmodel/query/language.d.ts +253 -0
  19. package/dist/mdmodel/query/match.d.ts +13 -0
  20. package/dist/mdmodel/query/rows.d.ts +31 -0
  21. package/dist/mdmodel/query/sql.d.ts +38 -0
  22. package/dist/mdmodel/reserved.d.ts +5 -0
  23. package/dist/mdmodel/room-types.d.ts +6 -0
  24. package/dist/mdmodel/types.d.ts +29 -10
  25. package/dist/mdmodel/validate.d.ts +31 -6
  26. package/dist/mdruntime/actions.d.ts +25 -0
  27. package/dist/mdruntime/adapter.d.ts +159 -122
  28. package/dist/mdruntime/attached-model.d.ts +6 -0
  29. package/dist/mdruntime/binary.d.ts +0 -5
  30. package/dist/mdruntime/bootstrap.d.ts +43 -0
  31. package/dist/mdruntime/cell.d.ts +5 -0
  32. package/dist/mdruntime/chain.d.ts +11 -0
  33. package/dist/mdruntime/change-set.d.ts +10 -16
  34. package/dist/mdruntime/change.d.ts +32 -1
  35. package/dist/mdruntime/client.d.ts +37 -26
  36. package/dist/mdruntime/collection.d.ts +29 -22
  37. package/dist/mdruntime/compile.d.ts +17 -0
  38. package/dist/mdruntime/conversation-live.d.ts +146 -0
  39. package/dist/mdruntime/conversation-row.d.ts +32 -0
  40. package/dist/mdruntime/conversation.d.ts +68 -49
  41. package/dist/mdruntime/declaration.d.ts +9 -0
  42. package/dist/mdruntime/durability.d.ts +20 -4
  43. package/dist/mdruntime/failure.d.ts +3 -0
  44. package/dist/mdruntime/figures.d.ts +48 -0
  45. package/dist/mdruntime/holdings.d.ts +28 -0
  46. package/dist/mdruntime/identity.d.ts +5 -0
  47. package/dist/mdruntime/listing.d.ts +47 -0
  48. package/dist/mdruntime/live.d.ts +22 -0
  49. package/dist/mdruntime/media.d.ts +7 -0
  50. package/dist/mdruntime/messages.d.ts +55 -0
  51. package/dist/mdruntime/model.d.ts +8 -11
  52. package/dist/mdruntime/observation.d.ts +17 -3
  53. package/dist/mdruntime/opened.d.ts +21 -0
  54. package/dist/mdruntime/outcome.d.ts +47 -9
  55. package/dist/mdruntime/overlay.d.ts +7 -5
  56. package/dist/mdruntime/preparation.d.ts +19 -0
  57. package/dist/mdruntime/presence.d.ts +51 -0
  58. package/dist/mdruntime/query.d.ts +21 -207
  59. package/dist/mdruntime/reach.d.ts +20 -9
  60. package/dist/mdruntime/readiness.d.ts +14 -18
  61. package/dist/mdruntime/reads.d.ts +38 -0
  62. package/dist/mdruntime/recovery.d.ts +5 -2
  63. package/dist/mdruntime/refresh.d.ts +26 -0
  64. package/dist/mdruntime/replica.d.ts +50 -39
  65. package/dist/mdruntime/retried.d.ts +29 -0
  66. package/dist/mdruntime/room-draft.d.ts +28 -11
  67. package/dist/mdruntime/room-drafts.d.ts +23 -0
  68. package/dist/mdruntime/runtime.d.ts +33 -0
  69. package/dist/mdruntime/save.d.ts +43 -50
  70. package/dist/mdruntime/saves.d.ts +31 -0
  71. package/dist/mdruntime/search.d.ts +12 -95
  72. package/dist/mdruntime/seed.d.ts +11 -2
  73. package/dist/mdruntime/socket/admission.d.ts +6 -0
  74. package/dist/mdruntime/socket/answers.d.ts +5 -0
  75. package/dist/mdruntime/socket/lanes.d.ts +27 -0
  76. package/dist/mdruntime/socket/session.d.ts +37 -0
  77. package/dist/mdruntime/socket.d.ts +66 -0
  78. package/dist/mdruntime/source.d.ts +53 -0
  79. package/dist/mdruntime/status.d.ts +4 -5
  80. package/dist/mdruntime/store/installs.d.ts +29 -0
  81. package/dist/mdruntime/store/readiness.d.ts +9 -0
  82. package/dist/mdruntime/store/records.d.ts +214 -0
  83. package/dist/mdruntime/store/room-held.d.ts +7 -0
  84. package/dist/mdruntime/store/space.d.ts +10 -0
  85. package/dist/mdruntime/store/watchers.d.ts +16 -0
  86. package/dist/mdruntime/store/writes.d.ts +23 -0
  87. package/dist/mdruntime/store.d.ts +111 -166
  88. package/dist/mdruntime/stored.d.ts +156 -0
  89. package/dist/mdruntime/surface.d.ts +88 -0
  90. package/dist/mdruntime/tables.d.ts +414 -0
  91. package/dist/mdruntime/tallies.d.ts +17 -0
  92. package/dist/mdruntime/transfer.d.ts +0 -5
  93. package/dist/mdruntime/wire.d.ts +82 -9
  94. package/dist/session-content/bounds.d.ts +7 -0
  95. package/dist/session-content/check.d.ts +18 -0
  96. package/dist/session-content/index.d.ts +7 -0
  97. package/dist/session-content/parts.d.ts +103 -0
  98. package/dist/session-content/state.d.ts +61 -0
  99. package/dist/session-content/turn.d.ts +328 -0
  100. package/dist/test-host.d.ts +7 -4
  101. package/dist/test-host.js +18 -28
  102. package/docs/families.md +65 -57
  103. package/package.json +8 -3
  104. package/dist/calls.d.ts +0 -957
  105. package/dist/calls.js +0 -1
  106. package/dist/mdmodel/blocks.d.ts +0 -10
  107. package/dist/mdmodel/condition.d.ts +0 -147
  108. package/dist/mdmodel/profile.d.ts +0 -5
  109. package/dist/mdruntime/connection.d.ts +0 -146
  110. package/dist/mdruntime/file.d.ts +0 -19
  111. package/dist/mdruntime/rows.d.ts +0 -38
  112. package/dist/mdruntime/shared.d.ts +0 -14
  113. package/dist/mdruntime/turn.d.ts +0 -8
package/dist/calls.js DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import type { Extent } from './types.js';
2
- export type HeadingLine = {
3
- readonly level: number;
4
- readonly name: string;
5
- readonly start: number;
6
- readonly textEnd: number;
7
- readonly next: number;
8
- };
9
- export declare function headingLines(content: string, from: number, to: number): HeadingLine[];
10
- export declare function blockRanges(content: string, from: number, to: number): Extent[];
@@ -1,147 +0,0 @@
1
- import { type ValueFacts } from './definition.js';
2
- import type { Document, VerifiedModel } from './types.js';
3
- export type ConditionValue = string | number | boolean;
4
- export type ConditionTest = {
5
- readonly all: readonly ConditionTest[];
6
- } | {
7
- readonly any: readonly ConditionTest[];
8
- } | {
9
- readonly not: ConditionTest;
10
- } | ({
11
- readonly path: string;
12
- } & ({
13
- readonly eq: ConditionValue;
14
- } | {
15
- readonly in: readonly ConditionValue[];
16
- } | {
17
- readonly exists: boolean;
18
- } | {
19
- readonly contains: ConditionValue;
20
- } | {
21
- readonly gt: number | string;
22
- } | {
23
- readonly gte: number | string;
24
- } | {
25
- readonly lt: number | string;
26
- } | {
27
- readonly lte: number | string;
28
- } | {
29
- readonly prefix: string;
30
- }));
31
- export type ConditionScope = {
32
- readonly type: string;
33
- } | {
34
- readonly folder: string;
35
- } | {
36
- readonly document: string;
37
- };
38
- type DocumentEventBase = {
39
- readonly on: 'documents';
40
- readonly scope: ConditionScope;
41
- readonly by?: ConditionTest;
42
- };
43
- export type DocumentCondition = (DocumentEventBase & {
44
- readonly mode: 'starts_matching';
45
- readonly new_documents: boolean;
46
- readonly match: ConditionTest;
47
- }) | (DocumentEventBase & {
48
- readonly mode: 'field_changes';
49
- readonly field: string;
50
- readonly from?: readonly ConditionValue[] | 'new';
51
- readonly to?: readonly ConditionValue[] | 'deleted';
52
- readonly match?: ConditionTest;
53
- });
54
- export type ItemCondition = {
55
- readonly on: 'items';
56
- readonly source?: string;
57
- readonly address?: string;
58
- readonly match?: ConditionTest;
59
- };
60
- export type CronCondition = {
61
- readonly on: 'clock';
62
- readonly cron: string;
63
- readonly time_zone: string;
64
- };
65
- export type DateCondition = {
66
- readonly on: 'clock';
67
- readonly scope: {
68
- readonly type: string;
69
- };
70
- readonly date: string;
71
- readonly days: number;
72
- readonly at: string;
73
- readonly time_zone: string;
74
- readonly match?: ConditionTest;
75
- };
76
- export type Condition = DocumentCondition | ItemCondition | CronCondition | DateCondition;
77
- export type FactKind = 'string' | 'number' | 'boolean' | 'date' | 'time' | 'enum' | 'reference';
78
- type Scalar = string | number | boolean;
79
- export type Fact = {
80
- readonly kind: FactKind;
81
- readonly value: Scalar;
82
- readonly member?: string;
83
- } | {
84
- readonly kind: 'prose';
85
- } | {
86
- readonly kind: 'null';
87
- } | {
88
- readonly kind: 'unreadable';
89
- } | {
90
- readonly kind: 'list';
91
- readonly items: readonly Fact[];
92
- } | {
93
- readonly kind: 'object';
94
- readonly fields: Readonly<Record<string, Fact>>;
95
- };
96
- export type DocumentFacts = {
97
- readonly id: string;
98
- readonly path: string;
99
- readonly type: string | null;
100
- readonly fields: Readonly<Record<string, Fact>>;
101
- readonly sections: readonly string[];
102
- };
103
- export declare const WRITE_DOORS: readonly ['browser', 'agent', 'client'];
104
- export type WriteDoor = (typeof WRITE_DOORS)[number];
105
- export type Actor = {
106
- readonly user?: string;
107
- readonly site?: string;
108
- readonly door?: WriteDoor;
109
- };
110
- export type DocumentEvent = {
111
- readonly before: DocumentFacts | null;
112
- readonly after: DocumentFacts | null;
113
- readonly changed: readonly string[];
114
- readonly by: Actor;
115
- };
116
- export type ItemFacts = {
117
- readonly delivery: string;
118
- readonly source: string | null;
119
- readonly address: string | null;
120
- readonly has_attachment: boolean;
121
- readonly container: string | null;
122
- readonly author: string | null;
123
- readonly headers: Readonly<Record<string, string>>;
124
- readonly json: {
125
- readonly value: unknown;
126
- } | null;
127
- };
128
- export type Resolved = {
129
- readonly id: string;
130
- readonly member?: string;
131
- };
132
- type Truth = boolean | undefined;
133
- export declare function factKind(facts: ValueFacts): FactKind | null;
134
- export declare function facts(document: Document, at: {
135
- readonly id: string;
136
- readonly path: string;
137
- }, model: VerifiedModel, resolve: (target: string) => Resolved | undefined): DocumentFacts;
138
- export declare function prosePaths(facts: DocumentFacts): string[];
139
- export declare function datePointers(fields: Readonly<Record<string, ValueFacts>>): string[];
140
- export declare function dated(value: unknown): value is string;
141
- export declare function instant(value: unknown): bigint | undefined;
142
- export declare function pointed(value: unknown, pointer: string): unknown;
143
- export declare function members(document: DocumentFacts, path: string): readonly string[];
144
- export declare function holds(test: ConditionTest, document: DocumentFacts): Truth;
145
- export declare function fires(condition: DocumentCondition, event: DocumentEvent): boolean;
146
- export declare function itemFires(condition: ItemCondition, item: ItemFacts): boolean;
147
- export {};
@@ -1,5 +0,0 @@
1
- export declare const MARKDOWN_SYNTAX_PROFILE: {
2
- readonly name: 'GitHub Flavored Markdown';
3
- readonly spec: '0.29';
4
- readonly url: 'https://github.github.com/gfm/';
5
- };
@@ -1,146 +0,0 @@
1
- import { type TypesResult } from './model.js';
2
- import { type Observation } from './observation.js';
3
- import { type DocumentQuery, type DocumentResult, type GroupQuery, type GroupResult, type PendingResult } from './query.js';
4
- import { type EntrySeed } from './seed.js';
5
- import { type SearchRequest, type SearchResult } from './search.js';
6
- import { type Adapter, type Authorization, type Member, type ProviderRefusal, type ServiceMode } from './adapter.js';
7
- import { type ChatDraftSurface, type ConversationAgent, type ConversationEntry, type ConversationOptions, type ConversationSurface, type ConversationView } from './conversation.js';
8
- import { type WrittenBy } from './change.js';
9
- import type { Open } from './open.js';
10
- import { type BinaryReference } from './binary.js';
11
- import { type BinaryAnswer, type BinaryLinkAnswer, type CallResult, type HistoryAnswer, type QueueEntry } from './outcome.js';
12
- import { type Recovery } from './recovery.js';
13
- import { type SaveRefusal } from './save.js';
14
- import { type RoomDraft, type RoomDraftParts, type RoomDraftWrite } from './room-draft.js';
15
- import { type SyncStatus } from './status.js';
16
- import { type RuntimeShell } from './durability.js';
17
- import { type CapacityCause, type CodeAvailability, type Persistence, type Readiness, type SearchObligation } from './readiness.js';
18
- import { type NarrowedView, type PortReach, type RuntimeView } from './reach.js';
19
- export type AppTypedSelection = {
20
- roots: readonly string[];
21
- model: TypesResult;
22
- };
23
- export type AppRoom = {
24
- name: string;
25
- locator: string;
26
- handle: string;
27
- operations: import('./adapter.js').OperationScopes;
28
- replica: import('./adapter.js').ReplicaAdmission;
29
- model: TypesResult;
30
- typedSelection: AppTypedSelection | null;
31
- providerOwnedPaths: readonly string[];
32
- roomVersion: string | null;
33
- documents: number;
34
- synchronizationAvailable: boolean;
35
- refusal: ProviderRefusal | null;
36
- };
37
- export type RoomSchemas = {
38
- collection: TypesResult;
39
- typedSelection: TypesResult | null;
40
- };
41
- type RefusalReason = 'missing-required-guarantee' | 'revoked-authorization';
42
- export type ConnectionRefusalCode = Open<RefusalReason>;
43
- export type ConnectionRefusal = {
44
- code: ConnectionRefusalCode;
45
- retryable: boolean;
46
- reauthorizationOffered: boolean;
47
- refusal: ProviderRefusal | null;
48
- };
49
- export type MdRuntimeOptions = {
50
- adapter: Adapter;
51
- shell: RuntimeShell;
52
- authorization?: Authorization;
53
- signal?: AbortSignal;
54
- recovery?: Recovery;
55
- };
56
- export type SaveResult = {
57
- outcome: 'saved';
58
- identifier: string;
59
- } | ({
60
- outcome: 'refused';
61
- } & SaveRefusal);
62
- export type SavedRoomDraft = {
63
- readonly path: string;
64
- readonly revision: string;
65
- };
66
- export type SavedParts = {
67
- readonly path: string;
68
- readonly parts: RoomDraftParts;
69
- };
70
- export type RoomDraftSurface = {
71
- list(): Promise<readonly RoomDraft[]>;
72
- read(room: string, path: string): RoomDraft | null;
73
- write(room: string, path: string, revision: string | null, parts: unknown): Promise<RoomDraftWrite>;
74
- discard(room: string, path: string, revision: string): Promise<RoomDraftWrite>;
75
- };
76
- export type PresentationSurface = {
77
- read(app: string): Promise<unknown>;
78
- write(app: string, value: unknown): Promise<void>;
79
- edit(app: string, members: Readonly<Record<string, unknown>>): Promise<void>;
80
- };
81
- export type BinaryFileSurface = {
82
- read(room: string, path: string, revision?: string): Promise<BinaryAnswer>;
83
- link(room: string, path: string, revision?: string): Promise<BinaryLinkAnswer>;
84
- readReference(reference: BinaryReference): Promise<BinaryAnswer>;
85
- };
86
- export type HistoryQuery = {
87
- revision?: string;
88
- pageToken?: string;
89
- };
90
- export type MdRuntime = {
91
- loaded(): Promise<void>;
92
- rooms(): readonly AppRoom[];
93
- query: {
94
- (query: DocumentQuery): Promise<DocumentResult | PendingResult>;
95
- (query: GroupQuery): Promise<GroupResult | PendingResult>;
96
- };
97
- search(request: SearchRequest): Promise<SearchResult>;
98
- types(locator: string): RoomSchemas;
99
- roomDraft: RoomDraftSurface;
100
- conversation: ConversationSurface;
101
- chatDraft: ChatDraftSurface;
102
- presentation: PresentationSurface;
103
- save(room: string, roomDrafts: readonly SavedRoomDraft[], writtenBy?: WrittenBy): Promise<SaveResult>;
104
- saveParts(room: string, parts: readonly SavedParts[], writtenBy?: WrittenBy): Promise<SaveResult>;
105
- history(locator: string, path: string, query?: HistoryQuery): Promise<HistoryAnswer>;
106
- binaryFile: BinaryFileSurface;
107
- call(name: string, input: unknown): Promise<CallResult>;
108
- reached(locator: string, roomVersion: string, path?: string): boolean;
109
- log(): string;
110
- persistence(): boolean;
111
- retry(): Promise<void>;
112
- observe: {
113
- (topic: 'rooms'): Promise<Observation<readonly AppRoom[]>>;
114
- (topic: 'readiness'): Promise<Observation<Readiness>>;
115
- (topic: 'connection-refusal'): Promise<Observation<ConnectionRefusal | null>>;
116
- (topic: 'storage-loss'): Promise<Observation<string | null>>;
117
- (topic: 'sync-status'): Promise<Observation<SyncStatus>>;
118
- (topic: 'service-mode'): Promise<Observation<ServiceMode>>;
119
- (topic: 'member'): Promise<Observation<Member | null>>;
120
- (topic: 'query', query: DocumentQuery): Promise<Observation<DocumentResult | PendingResult>>;
121
- (topic: 'query', query: GroupQuery): Promise<Observation<GroupResult | PendingResult>>;
122
- (topic: 'queue', locator: string): Promise<Observation<readonly QueueEntry[]>>;
123
- (topic: 'room-drafts'): Promise<Observation<readonly RoomDraft[]>>;
124
- (topic: 'presentation', app: string): Promise<Observation<unknown>>;
125
- (topic: 'conversation', conversation: string, options: ConversationOptions): Promise<Observation<ConversationView>>;
126
- (topic: 'conversations'): Promise<Observation<readonly ConversationEntry[]>>;
127
- (topic: 'agents'): Promise<Observation<readonly ConversationAgent[]>>;
128
- };
129
- reauthorize(): Promise<void>;
130
- };
131
- export type RuntimeTopic = 'rooms' | 'readiness' | 'connection-refusal' | 'storage-loss' | 'sync-status' | 'service-mode' | 'member' | 'query' | 'queue' | 'room-drafts' | 'presentation' | 'conversation' | 'conversations' | 'agents';
132
- export type ReadinessPort = {
133
- readonly target: string;
134
- readonly code: CodeAvailability;
135
- readonly capacity: CapacityCause | null;
136
- readonly search: SearchObligation;
137
- };
138
- export type ComposedRuntime = RuntimeView & {
139
- seed(entry: EntrySeed): void;
140
- stop(): Promise<void>;
141
- lose(locators: readonly string[]): Promise<void>;
142
- persisted(answer: Persistence): void;
143
- within(reach: PortReach | null, port: ReadinessPort): NarrowedView;
144
- };
145
- export declare function composeRuntime(options: MdRuntimeOptions): ComposedRuntime;
146
- export {};
@@ -1,19 +0,0 @@
1
- export type ChatDraftFile = {
2
- name: string;
3
- blob: Blob;
4
- };
5
- export type FileDeclaration = {
6
- name: string;
7
- mediaType: string;
8
- byteLength: number;
9
- contentHash: string;
10
- width?: number;
11
- height?: number;
12
- };
13
- export type Extent = {
14
- width: number;
15
- height: number;
16
- };
17
- export declare function extentOf(bytes: Uint8Array): Extent | null;
18
- export declare function hexDigest(digest: ArrayBuffer): string;
19
- export declare function declaredFile(file: ChatDraftFile): Promise<FileDeclaration>;
@@ -1,38 +0,0 @@
1
- import { type Frontmatter } from '../mdmodel/index.js';
2
- import type { HeadChange } from './adapter.js';
3
- import type { BinaryFileRecord } from './binary.js';
4
- import { type Composition } from './collection.js';
5
- type Fields = Readonly<Record<string, unknown>>;
6
- export type DocumentRow = {
7
- key: string;
8
- kind: 'document';
9
- room: string;
10
- path: string;
11
- type: string | null;
12
- fields: Fields;
13
- values: Fields;
14
- reached: Readonly<Record<string, readonly unknown[]>>;
15
- directories: readonly string[];
16
- folder: string;
17
- text: string | null;
18
- change: HeadChange | null;
19
- fileId: string | null;
20
- binary: BinaryFileRecord | null;
21
- };
22
- export type ReferenceRow = {
23
- key: string;
24
- kind: 'reference';
25
- room: string;
26
- source: string;
27
- target: string;
28
- field: string;
29
- forms: readonly string[];
30
- path: string;
31
- type: string;
32
- };
33
- export type Row = DocumentRow | ReferenceRow;
34
- export declare function documentKey(room: string, path: string): string;
35
- export declare function roomOfKey(key: string): string;
36
- export declare function markdownPath(path: string): boolean;
37
- export declare function rowsOf(room: string, path: string, document: Frontmatter | null, composition: Composition, change: HeadChange | null, fileId: string | null, binary: BinaryFileRecord | null): readonly Row[];
38
- export {};
@@ -1,14 +0,0 @@
1
- export type Paths<V> = Readonly<Record<string, V>>;
2
- type Weigh<V> = (key: string, value: V) => number;
3
- export declare function sharing<V>(map: Paths<V>): Generator<number, Paths<V>, void>;
4
- export declare function shared<V>(map: Paths<V>): Paths<V>;
5
- export declare function patched<V>(base: Paths<V>, set: Iterable<readonly [string, V]>, removed?: Iterable<string>): Paths<V>;
6
- export declare function patching<V>(base: Paths<V>, set: Iterable<readonly [string, V]>, removed?: Iterable<string>): Generator<number, Paths<V>, void>;
7
- export declare function tally<V>(map: Paths<V>, weigh: Weigh<V>): number;
8
- export declare function sizeOf<V>(map: Paths<V>): number;
9
- export declare function differences<V>(left: Paths<V>, right: Paths<V>, same?: (left: V, right: V) => boolean): Generator<number, ReadonlySet<string>, void>;
10
- export declare function differing<V>(left: Paths<V>, right: Paths<V>, same?: (left: V, right: V) => boolean): ReadonlySet<string>;
11
- export declare function drafted<V>(base: Paths<V>): Record<string, V>;
12
- export declare function settled<V>(draft: Record<string, V>): Paths<V>;
13
- export declare function settling<V>(draft: Record<string, V>): Generator<number, Paths<V>, void>;
14
- export {};
@@ -1,8 +0,0 @@
1
- export declare function yielded(): Promise<void>;
2
- export declare const ROW_WEIGHT = 256;
3
- export type Later<T> = T | Promise<T>;
4
- export declare function after<T, R>(value: Later<T>, next: (value: T) => Later<R>): Later<R>;
5
- export declare function inUnits<T>(items: Iterable<T>, each: (item: T) => number, ended?: () => void, paused?: () => Promise<void>): Later<void>;
6
- export declare function finished<R>(steps: Generator<number, R, void>): R;
7
- export declare function stepped<R>(steps: Generator<number, R, void>): Later<R>;
8
- export declare function inChunks<T>(items: readonly T[], weigh: (item: T) => number, each: (chunk: readonly T[]) => Later<void>): Promise<void>;