import * as perfect_freehand from 'perfect-freehand'; import { getStroke, StrokeOptions } from 'perfect-freehand'; import ky, { Options as Options$1, KyInstance } from 'ky'; import { ClassValue } from 'clsx'; import { FullOptions, sortKind, MatchData } from 'fast-fuzzy'; import { Config } from 'dompurify'; import { Options } from '@sindresorhus/slugify'; type AnyTransform = (param: any) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/clone) */ declare function createClone(): AnyTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/deep-equal) */ declare function createDeepEqual(compared: any): AnyTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/equal) */ declare function createEqual(compared: any): AnyTransform; type ArrayTransform = (array: Item[]) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/concat) */ declare function createConcat(...arrays: Item[][]): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/filter) */ declare function createFilter(predicate: (item: Item, index: number) => boolean): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/insert) */ declare function createInsert(item: Item, index: number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/map) */ declare function createMap(transform: (item: Item, index: number) => Transformed): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/reduce) */ declare function createReduce(accumulate: (accumulator: Accumulator, item: Item, index: number) => Accumulator, initialValue?: Accumulator): (array: Item[]) => Accumulator; /** * [Docs](https://baleada.dev/docs/logic/pipes/remove) */ declare function createRemove(index: number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/reorder) */ declare function createReorder(from: { start: number; itemCount: number; } | number, to: number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/replace) */ declare function createReplace(index: number, replacement: Item): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/reverse) */ declare function createReverse(): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/slice) */ declare function createSlice(from: number, to?: number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/shuffle) */ declare function createShuffle(): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/sort) */ declare function createSort(compare?: (itemA: Item, itemB: Item) => number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/swap) */ declare function createSwap(item1Index: number, item2Index: number): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/unique) */ declare function createUnique(): ArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/array-format) */ declare function createFormat$2(...params: ConstructorParameters): ArrayTransform; type ArrayAsyncTransform = (array: Item[]) => Promise; /** * [Docs](https://baleada.dev/docs/logic/pipes/filter-async) */ declare function createFilterAsync(predicate: (item: Item, index: number) => Promise): ArrayAsyncTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/find-async) */ declare function createFindAsync(predicate: (item: Item, index: number) => Promise): ArrayAsyncTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/find-index-async) */ declare function createFindIndexAsync(predicate: (item: Item, index: number) => Promise): ArrayAsyncTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/map-async) */ declare function createMapAsync(transform: (item: Item, index: number) => Promise): ArrayAsyncTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/reduce-async) */ declare function createReduceAsync(accumulate: (accumulator: Accumulator, item: Item, index: number) => Promise, initialValue?: Accumulator): (array: Item[]) => Promise; type AssociativeArrayEffect = (associativeArray: AssociativeArray) => AssociativeArray; /** * [Docs](https://baleada.dev/docs/logic/links/associative-array-set) */ declare function createSet$1(key: Key, value: Value, options?: WithPredicateKey): AssociativeArrayEffect; /** * [Docs](https://baleada.dev/docs/logic/links/associative-array-clear) */ declare function createClear$1(): AssociativeArrayEffect; /** * [Docs](https://baleada.dev/docs/logic/links/associative-array-delete) */ declare function createDelete$1(key: Key, options?: WithPredicateKey): AssociativeArrayEffect; type AssociativeArray = [Key, Value][]; declare function defineAssociativeArray(associativeArray: AssociativeArray): AssociativeArray; type KeyStatusCode = string; type CreateAliasesOptions = { toLonghand?: (shorthand: string) => string; }; type CreateKeycomboDownOptions = CreateAliasesOptions & { toCode?: (alias: string) => KeyStatusCode; }; type CreateKeycomboMatchOptions$1 = CreateKeycomboDownOptions & { toAliases?: (code: KeyStatusCode) => string[]; }; type KeyboardEventDescriptor = { code?: string; shiftKey?: boolean; altKey?: boolean; ctrlKey?: boolean; metaKey?: boolean; }; declare function fromKeyboardEventDescriptorToAliases(descriptor: KeyboardEventDescriptor): string[]; declare function fromCodeToAliases(code: KeyStatusCode): string[]; declare function fromAliasToCode(alias: string): KeyStatusCode; declare function fromShorthandAliasToLonghandAlias(shorthand: string): string; type Direction = 'up' | 'upRight' | 'right' | 'downRight' | 'down' | 'downLeft' | 'left' | 'upLeft' | 'none'; type HookApi> = { status: RecognizeableStatus; metadata: Metadata; sequence: ListenEffectParam[]; }; type PolarCoordinates = { distance: number; angle: { radians: number; degrees: number; }; }; type KeyboardTimeMetadata = { times: { start: number; end: number; }; duration: number; }; type PointerStartMetadata = { points: { start: { x: number; y: number; }; end: { x: number; y: number; }; }; }; type PointerTimeMetadata = { times: { start: number; end: number; }; duration: number; velocity: number; }; type PointerMoveMetadata = { distance: { straight: { fromStart: PolarCoordinates['distance']; fromPrevious: PolarCoordinates['distance']; }; horizontal: { fromStart: PolarCoordinates['distance']; fromPrevious: PolarCoordinates['distance']; }; vertical: { fromStart: PolarCoordinates['distance']; fromPrevious: PolarCoordinates['distance']; }; }; angle: { fromPrevious: PolarCoordinates['angle']; fromStart: PolarCoordinates['angle']; }; direction: { fromPrevious: Direction; fromStart: Direction; }; }; type Graph = { nodes: GraphNode[]; edges: GraphEdge[]; }; type GraphNode = Id; type GraphEdge = { from: Id; to: Id; predicateShouldTraverse: (state: GraphState) => boolean; }; type GraphState = Record; type GraphPath = GraphNode[]; type GraphStep = { state: GraphState; path: GraphPath; }; type GraphCommonAncestor = { node: GraphNode; distances: Record, number>; }; type GraphTreeNode = { node: GraphNode; children: GraphTreeNode[]; }; type GraphTree = GraphTreeNode[]; declare function defineGraph(nodes: GraphNode[], edges: GraphEdge[]): { nodes: Id[]; edges: GraphEdge[]; }; declare function defineGraphNodes(nodes: GraphNode[]): Id[]; declare function defineGraphEdges(edges: GraphEdge[]): GraphEdge[]; declare function defineGraphNode(node: GraphNode): Id; declare function defineGraphEdge(from: GraphNode, to: GraphNode, predicateShouldTraverse: (state: GraphState) => boolean): { from: Id; to: Id; predicateShouldTraverse: (state: GraphState) => boolean; }; type GraphAsync = { nodes: GraphNode[]; edges: GraphAsyncEdge[]; }; type GraphAsyncEdge = { from: Id; to: Id; predicateShouldTraverse: (state: GraphState) => Promise; }; declare function defineGraphAsync(nodes: GraphNode[], edges: GraphAsyncEdge[]): { nodes: Id[]; edges: GraphAsyncEdge[]; }; declare function defineGraphAsyncEdges(edges: GraphAsyncEdge[]): GraphAsyncEdge[]; declare function defineGraphAsyncEdge(from: GraphNode, to: GraphNode, predicateShouldTraverse: (state: GraphState) => Promise): { from: Id; to: Id; predicateShouldTraverse: (state: GraphState) => Promise; }; type RecognizeableOptions> = { maxSequenceLength?: true | number; effects?: { [type in Type]?: RecognizeableEffect | RecognizeableEffectConfig; }; }; type RecognizeableEffectConfig> = { effect: RecognizeableEffect; stop: (target: RecognizeableStopTarget) => void; }; type RecognizeableEffect> = (sequenceItem: ListenEffectParam, api: RecognizeableEffectApi) => void; type RecognizeableEffectApi> = { getStatus: () => RecognizeableStatus; getMetadata: () => Metadata; setMetadata: (metadata: Metadata) => void; recognized: () => void; denied: () => void; getSequence: () => ListenEffectParam[]; pushSequence: (sequenceItem: ListenEffectParam) => void; listenInjection: RecognizeOptions['listenInjection']; }; type RecognizeableStatus = 'recognized' | 'recognizing' | 'denied' | 'ready'; type RecognizeOptions = { listenInjection?: { effect: (sequenceItem: ListenEffectParam) => any; optionsByType: Record>; }; }; type RecognizeableStops = { [type in Type]?: (target: RecognizeableStopTarget) => void; }; type RecognizeableStopTarget = ('target' extends keyof ListenOptions ? ListenOptions['target'] : never); /** * [Docs](https://baleada.dev/docs/logic/classes/recognizeable) */ declare class Recognizeable> { private maxSequenceLength; private effects; private effectApi; constructor(sequence: ListenEffectParam[], options?: RecognizeableOptions); private computedMetadata; private resetComputedMetadata; private recognized; private denied; private computedStatus; private ready; get sequence(): ListenEffectParam[]; set sequence(sequence: ListenEffectParam[]); private computedStops; get stops(): RecognizeableStops; get status(): RecognizeableStatus; get metadata(): Metadata; private computedSequence; setSequence(sequence: ListenEffectParam[]): this; recognize(sequenceItem: ListenEffectParam, options?: RecognizeOptions): this; private recognizing; private toType; } type ListenableSupportedType = 'recognizeable' | 'intersect' | 'mutate' | 'resize' | 'idle' | 'message' | 'messageerror' | ListenableMediaQuery | keyof Omit | keyof Omit | keyof IDBEventMap; type IDBEventMap = IDBRequestEventMap & IDBTransactionEventMap & IDBOpenDBRequestEventMap & IDBDatabaseEventMap; type ListenableMediaQuery = `(${string})`; type ListenableMousecombo = `${string}+${ListenableLeftClick | ListenableRightClick}`; type ListenableLeftClick = 'click' | 'dblclick' | `mouse${string}`; type ListenableRightClick = 'rightclick' | 'contextmenu'; type ListenablePointercombo = `${string}+${ListenablePointer}`; type ListenablePointer = `pointer${string}`; type ListenableKeycombo = string; type ListenableSupportedEventType = keyof Omit | keyof Omit; type ListenableOptions = Record> = { recognizeable?: RecognizeableOptions; }; type ListenEffect = Type extends 'intersect' ? (entries: ListenEffectParam) => any : Type extends 'mutate' ? (records: ListenEffectParam) => any : Type extends 'resize' ? (entries: ListenEffectParam) => any : Type extends 'idle' ? (deadline: ListenEffectParam) => any : Type extends ('message' | 'messageerror') ? (event: MessageEvent) => any : Type extends ListenableMediaQuery ? (event: ListenEffectParam) => any : Type extends (ListenableLeftClick | ListenableRightClick) ? (event: ListenEffectParam) => any : Type extends (ListenablePointer) ? (event: ListenEffectParam) => any : Type extends ('keydown' | 'keyup') ? (event: ListenEffectParam) => any : Type extends keyof Omit ? (event: ListenEffectParam) => any : Type extends keyof Omit ? (event: ListenEffectParam) => any : Type extends keyof IDBEventMap ? (event: ListenEffectParam) => any : never; type ListenEffectParam = Type extends 'intersect' ? IntersectionObserverEntry[] : Type extends 'mutate' ? MutationRecord[] : Type extends 'resize' ? ResizeObserverEntry[] : Type extends 'idle' ? IdleDeadline : Type extends ('message' | 'messageerror') ? MessageEvent : Type extends ListenableMediaQuery ? MediaQueryListEvent : Type extends ListenableRightClick ? MouseEvent : Type extends keyof Omit ? HTMLElementEventMap[Type] : Type extends keyof Omit ? DocumentEventMap[Type] : Type extends keyof IDBEventMap ? IDBEventMap[Type] : never; type ListenOptions = Type extends 'intersect' ? { observer?: IntersectionObserverInit; } & ObservationListenOptions : Type extends 'mutate' ? { observe?: MutationObserverInit; } & ObservationListenOptions : Type extends 'resize' ? { observe?: ResizeObserverOptions; } & ObservationListenOptions : Type extends 'idle' ? { requestIdleCallback?: IdleRequestOptions; } : Type extends ('message' | 'messageerror') ? { target?: BroadcastChannel; } : Type extends ListenableMediaQuery ? { instantEffect?: (list: MediaQueryList) => any; } : Type extends keyof Omit ? EventListenOptions : Type extends keyof Omit ? EventListenOptions : Type extends keyof IDBEventMap ? EventListenOptions : never; type ObservationListenOptions = { target?: Element; }; type EventListenOptions = { target?: Element | Document | (Window & typeof globalThis) | IDB; addEventListener?: AddEventListenerOptions; useCapture?: boolean; except?: string[]; only?: string[]; }; type IDB = (IDBRequest | IDBOpenDBRequest | IDBTransaction | IDBDatabase); type ListenableActive = Record> = Type extends 'intersect' ? { target: Element; id: IntersectionObserver; } : Type extends 'mutate' ? { target: Element; id: MutationObserver; } : Type extends 'resize' ? { target: Element; id: ResizeObserver; } : Type extends 'idle' ? { target: Window & typeof globalThis; id: number; } : Type extends ('message' | 'messageerror') ? { target: BroadcastChannel; id: [type: string, effect: (event: MessageEvent) => void]; } : Type extends ListenableMediaQuery ? { target: MediaQueryList; id: [type: string, effect: (param: ListenEffectParam) => void]; } : Type extends ListenableSupportedEventType ? { target: Element | Document; id: ListenableActiveEventId; } : { id: Listenable; target: RecognizeableStopTarget; stopExtension: (target: RecognizeableStopTarget) => void; }; type ListenableActiveEventId = [ type: Type, exceptAndOnlyEffect: (param: ListenEffectParam) => void, optionsOrUseCapture: AddEventListenerOptions | boolean ]; type ListenableStatus = 'ready' | 'listening' | 'stopped'; /** * [Docs](https://baleada.dev/docs/logic/classes/listenable) */ declare class Listenable = Record> { private computedRecognizeable; private recognizeableEffectsKeys; private computedActive; constructor(type: Type, options?: ListenableOptions); private computedStatus; private ready; get type(): Type; set type(type: Type); get status(): ListenableStatus; get active(): Set>; get recognizeable(): Recognizeable; private computedType; private implementation; setType(type: Type): this; listen(effect: ListenEffect, options?: ListenOptions): this; private intersectionListen; private mutationListen; private resizeListen; private mediaQueryListen; private idleListen; private messageListen; private recognizeableListen; private documentEventListen; private eventListen; private addEventListeners; private listening; stop(options?: { target?: Element | Document | (Window & typeof globalThis); }): this; private stopped; private getDefaultListenOptions; } type AssociativeArrayTransform = (associativeArray: AssociativeArray) => Transformed; type WithPredicateKey = { predicateKey?: (candidate: Key) => boolean; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/associative-array-value) */ declare function createValue$1(key: Key, options?: WithPredicateKey): AssociativeArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/associative-array-has) */ declare function createHas$1(key: Key, options?: WithPredicateKey): AssociativeArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/associative-array-keys) */ declare function createKeys$1(): AssociativeArrayTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/associative-array-values) */ declare function createValues(): AssociativeArrayTransform; type ManyTransform = (...params: Parameter[]) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/list) */ declare function createList(): ManyTransform; type MixColorTransform = (mixColor: MixColor) => Transformed; type ColorInterpolationMethod = RectangularColorSpace | PolarColorSpace | `${PolarColorSpace} ${HueInterpolationMethod}`; type RectangularColorSpace = 'srgb' | 'srgb-linear' | 'lab' | 'oklab' | 'xyz' | 'xyz-d50' | 'xyz-d65'; type PolarColorSpace = 'hsl' | 'hwb' | 'lch' | 'oklch'; type HueInterpolationMethod = 'shorter' | 'longer' | 'increasing' | 'decreasing'; type CreateMixOptions = { method?: ColorInterpolationMethod; tag?: string; getParent?: () => HTMLElement; }; type MixColor = `${string} ${number}%` | string; /** * [Docs](https://baleada.dev/docs/logic/pipes/mix) */ declare function createMix(color2: MixColor, options?: CreateMixOptions): MixColorTransform; type GraphStateTransform = (state: GraphState) => Transformed; type GeneratorTransform = (param: Parameter) => Generator; type GraphNodeTransform = (node: GraphNode) => Transformed; type GraphNodeGeneratorTransform = GeneratorTransform, Yielded>; type GraphNodeTupleTransform = (...nodes: [GraphNode, GraphNode]) => Transformed; type GraphNodeTupleGeneratorTransform = (...nodes: [GraphNode, GraphNode]) => Generator; /** * [Docs](https://baleada.dev/docs/logic/pipes/root) */ declare function createRoot | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/terminal) */ declare function createTerminal | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/children) */ declare function createChildren | GraphAsync>(graph: GraphType): GraphNodeGeneratorTransform, GraphNode>; /** * [Docs](https://baleada.dev/docs/logic/pipes/indegree) */ declare function createIndegree | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/outdegree) */ declare function createOutdegree | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/incoming) */ declare function createIncoming | GraphAsync>(graph: GraphType): GraphNodeGeneratorTransform, GraphType extends GraphAsync ? GraphAsyncEdge : GraphEdge>; /** * [Docs](https://baleada.dev/docs/logic/pipes/outgoing) */ declare function createOutgoing | GraphAsync>(graph: GraphType): GraphNodeGeneratorTransform, GraphType extends GraphAsync ? GraphAsyncEdge : GraphEdge>; declare function createOnlyChild | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/total-siblings) */ declare function createTotalSiblings | GraphAsync>(graph: GraphType): GraphNodeTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/siblings) */ declare function createSiblings | GraphAsync>(graph: GraphType): GraphNodeGeneratorTransform, GraphNode>; type GraphTransform = (graph: Graph) => Transformed; type GraphGeneratorTransform = GeneratorTransform, Yielded>; type GeneratorAsyncTransform = (param: Parameter) => AsyncGenerator; type GraphAsyncTransform = (graph: GraphAsync) => Promise; type GraphAsyncGeneratorTransform = GeneratorTransform, Yielded>; type GraphAsyncGeneratorAsyncTransform = GeneratorAsyncTransform, Yielded>; type CreatePathConfig = { predicatePathable: (node: GraphNode) => boolean; toTraversalCandidates: (path: GraphPath) => Iterable>; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-path) */ declare function createPath$2(directedAcyclic: Graph, config: CreatePathConfig): GraphStateTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-layers) */ declare function createLayers$1(options?: { createDepthFirstSteps?: CreateStepsOptions$1; }): GraphGeneratorTransform[]>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-tree) */ declare function createTree$2(options?: { createDepthFirstSteps?: CreateStepsOptions$1; }): GraphTransform>; type CreateDepthFirstStepsOptions = CreateStepsOptions$1 & { getSetStateValue?: (api: { node: GraphNode; totalChildrenDiscovered: number; }) => StateValue; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-depth-first-steps) */ declare function createDepthFirstSteps$2(options?: CreateDepthFirstStepsOptions): GraphGeneratorTransform>; type CreateStepsOptions$1 = { kind?: 'directed acyclic' | 'arborescence'; root?: GraphNode; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-roots) */ declare function createRoots | GraphAsync = Graph>(options?: { kind?: 'directed acyclic' | 'arborescence'; }): (GraphType extends GraphAsync ? GraphAsyncGeneratorTransform> : GraphGeneratorTransform>); /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-common-ancestors) */ declare function createCommonAncestors$2(directedAcyclic: Graph): GraphNodeTupleGeneratorTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-ancestor) */ declare function createAncestor$2(directedAcyclic: Graph): GraphNodeTupleTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-node-depth-first-steps) */ declare function createNodeDepthFirstSteps$2(directedAcyclic: Graph, options?: { createDepthFirstSteps?: CreateDepthFirstStepsOptions; }): GraphNodeGeneratorTransform>; type CreateStepsOptions = Pick, 'kind'> & { priorityBranch?: boolean; }; type DecisionTree = Graph; type DecisionTreeStateValue = boolean; declare function createTree$1(options?: { createDepthFirstSteps?: CreateStepsOptions; }): GraphTransform>; declare function createCommonAncestors$1(...params: Parameters>): GraphNodeTupleGeneratorTransform>; declare function createAncestor$1(...params: Parameters>): GraphNodeTupleTransform; declare function createNodeDepthFirstSteps$1(decisionTree: DecisionTree, options?: { createDepthFirstSteps?: CreateStepsOptions; }): GraphNodeGeneratorTransform>; declare function createDepthFirstSteps$1(options: CreateStepsOptions): GraphGeneratorTransform>; declare function createPath$1(...params: Parameters>): GraphStateTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-async-layers) */ declare function createLayers(options?: { createDepthFirstSteps?: CreateStepsOptions$1; }): GraphAsyncTransform[][]>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-async-tree) */ declare function createTree(options?: { createDepthFirstSteps?: CreateStepsOptions$1; }): GraphAsyncTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-async-depth-first-steps) */ declare function createDepthFirstSteps(options?: CreateDepthFirstStepsOptions): GraphAsyncGeneratorAsyncTransform>; type GraphAsyncNodeGeneratorAsyncTransform = GeneratorAsyncTransform, Yielded>; type GraphAsyncNodeTupleTransform = (...nodes: [GraphNode, GraphNode]) => Promise; type GraphNodeTupleGeneratorAsyncTransform = (...nodes: [GraphNode, GraphNode]) => AsyncGenerator; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-common-ancestors) */ declare function createCommonAncestors(directedAcyclicAsync: GraphAsync): GraphNodeTupleGeneratorAsyncTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/Ancestor) */ declare function createAncestor(directedAcyclicAsync: GraphAsync): GraphAsyncNodeTupleTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/NodeDepthFirstSteps) */ declare function createNodeDepthFirstSteps(directedAcyclicAsync: GraphAsync, options?: { createDepthFirstSteps?: CreateDepthFirstStepsOptions; }): GraphAsyncNodeGeneratorAsyncTransform>; type GraphAsyncStateTransform = (state: GraphState) => Promise; /** * [Docs](https://baleada.dev/docs/logic/pipes/directed-acyclic-async-path) */ declare function createPath(directedAcyclicAsync: GraphAsync, config: CreatePathConfig): GraphAsyncStateTransform>; type DateTransform = (date: DateKind) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/date-format) */ declare function createFormat$1(...params: ConstructorParameters): DateTransform; type ElementTransform = (element: El) => Transformed; type CreateFocusableOptions = { predicatesElement?: boolean; tabbableSelector?: string; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/focusable) */ declare function createFocusable(order: 'first' | 'last' | 'next' | 'previous', options?: CreateFocusableOptions): ElementTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/computed-style) */ declare function createComputedStyle(pseudoElement?: string): ElementTransform; type FunctionTransform = (param: Fn) => Returned; declare function createTry(): FunctionTransform<() => Optimistic, Optimistic | Pessimistic>; type AsyncFunctionTransform = (param: Fn) => Promise; declare function createTryAsync(): AsyncFunctionTransform<() => Promise, Optimistic | Pessimistic>; type GraphTreeTransform = (tree: GraphTree) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/find) */ declare function createFind(node: GraphNode): GraphTreeTransform>; type KeyboardEventDescriptorTransform = (descriptor: KeyboardEventDescriptor) => Transformed; type CreateKeycomboMatchOptions = Omit & { toAliases?: (descriptor: KeyboardEventDescriptor) => string[]; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/keycombo-match) */ declare const createKeycomboMatch: (keycombo: string, options?: CreateKeycomboMatchOptions) => KeyboardEventDescriptorTransform; type NumberTransform = (number: number) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/clamp) */ declare function createClamp(min: number, max: number): NumberTransform; type Potentiality = { outcome: Outcome; probability: number; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/determine) */ declare function createDetermine(potentialities: Potentiality[]): NumberTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/number-format) */ declare function createFormat(...params: ConstructorParameters): NumberTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/greater) */ declare function createGreater(threshold: number): NumberTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/greater-or-equal) */ declare function createGreaterOrEqual(threshold: number): NumberTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/less-or-equal) */ declare function createLessOrEqual(threshold: number): NumberTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/less) */ declare function createLess(threshold: number): NumberTransform; type ObjectTransform, Transformed> = (transform: Type) => Transformed; type ValueOf = Type[keyof Type]; /** * [Docs](https://baleada.dev/docs/logic/pipes/value) */ declare function createValue>(key: keyof Type): ObjectTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/has) */ declare function createHas>(key: keyof Type): ObjectTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/keys) */ declare function createKeys>(): ObjectTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/entries) */ declare function createEntries>(): ObjectTransform][]>; /** * [Docs](https://baleada.dev/docs/logic/pipes/every) */ declare function createEvery>(predicate: (key: keyof Type, value: ValueOf) => unknown): ObjectTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/some) */ declare function createSome>(predicate: (key: keyof Type, value: ValueOf) => unknown): ObjectTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/deep-merge) */ declare function createDeepMerge>(override?: Type): ObjectTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/omit) */ declare function createOmit, Omitted extends keyof Type = keyof Type>(keys: Omitted[]): ObjectTransform>; /** * [Docs](https://baleada.dev/docs/logic/pipes/pick) */ declare function createPick, Picked extends keyof Type = keyof Type>(keys: Picked[]): ObjectTransform>; type StringTransform = (string: string) => Transformed; /** * [Docs](https://baleada.dev/docs/logic/pipes/clip) */ declare function createClip(content: string | RegExp): StringTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/slug) */ declare function createSlug(options?: Options): StringTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/sanitize) */ declare function createSanitize(options?: Config): StringTransform; /** * [Docs](https://baleada.dev/docs/logic/pipes/number) */ declare function createNumber(options?: { radix?: number; }): StringTransform; type CreateResultsOptions = Omit, 'returnMatchData'> & { returnMatchData?: ReturnsMatchData; }; declare function createResults(candidates: Candidate[], options?: (CreateResultsOptions | ((api: { sortKind: typeof sortKind; }) => CreateResultsOptions))): StringTransform[] : Candidate[]>; type ToGraphYielded = { node: GraphNode; edge: PartialGraphEdge | undefined; }; type PartialGraphEdge = Omit, 'predicateShouldTraverse'>; type CreateGraphOptions = { toId?: (node: TreeNode) => string; toChildren?: (node: TreeNode) => TreeNode[]; }; /** * [Docs](https://baleada.dev/docs/logic/pipes/graph) */ declare function createGraph(options?: CreateGraphOptions): GeneratorTransform; type AnimateableKeyframe = { progress: number; properties: { [key: string]: AnimateableValue; }; timing?: AnimateableTiming; }; type AnimateableValue = Value extends `${string} ${number}%` ? never : (Value | number | any[]); declare function defineAnimateableKeyframes(keyframes: AnimateableKeyframe[]): AnimateableKeyframe[]; type AnimateableOptions = { duration?: number; timing?: AnimateableTiming; iterations?: number | true; alternates?: boolean; }; type AnimateableTiming = [number, number, number, number]; type AnimateFrameEffect = (frame?: AnimateFrame) => any; type AnimateFrame = { properties: { [key: string]: { progress: { time: number; animation: number; }; interpolated: number | string | any[]; }; }; timestamp: number; }; type AnimateOptions = { interpolate?: { color?: CreateMixOptions; }; }; type AnimateableStatus = 'ready' | 'playing' | 'played' | 'reversing' | 'reversed' | 'paused' | 'sought' | 'stopped'; /** * [Docs](https://baleada.dev/docs/logic/classes/animateable) */ declare class Animateable { private initialDuration; private iterationLimit; private alternates; private controlPoints; private reversedControlPoints; private toAnimationProgress; private reversedToAnimationProgress; private playCache; private reverseCache; private pauseCache; private seekCache; private alternateCache; private visibilitychange; private getEaseables; private getReversedEaseables; constructor(keyframes: AnimateableKeyframe[], options?: AnimateableOptions); private computedStatus; private ready; private computedTime; private resetTime; private computedProgress; private resetProgress; private computedIterations; private resetIterations; get keyframes(): AnimateableKeyframe[]; set keyframes(keyframes: AnimateableKeyframe[]); get playbackRate(): number; set playbackRate(playbackRate: number); get status(): AnimateableStatus; get iterations(): number; get request(): number; get time(): { elapsed: number; remaining: number; }; get progress(): { time: number; animation: number; }; private computedKeyframes; private reversedKeyframes; private properties; private easeables; private reversedEaseables; setKeyframes(keyframes: AnimateableKeyframe[]): this; private computedPlaybackRate; private duration; private totalTimeInvisible; setPlaybackRate(playbackRate: number): this; play(effect: AnimateFrameEffect, options?: AnimateOptions): this; private playing; private played; reverse(effect: AnimateFrameEffect, options?: AnimateOptions): this; private reversing; private reversed; private invisibleAt; private listenForVisibilitychange; private computedRequest; private createAnimate; private startTime; private setStartTimeAndStatus; private getToAnimationProgress; private getFrame; private recurse; pause(): this; private paused; private cancelAnimate; seek(timeProgress: number, options?: { effect?: AnimateFrameEffect; } & AnimateOptions): this; private sought; restart(): this; stop(): this; private stopped; } declare const linear: AnimateableKeyframe['timing']; declare const materialStandard: AnimateableKeyframe['timing']; declare const materialDecelerated: AnimateableKeyframe['timing']; declare const materialAccelerated: AnimateableKeyframe['timing']; declare const verouEase: AnimateableKeyframe['timing']; declare const verouEaseIn: AnimateableKeyframe['timing']; declare const verouEaseOut: AnimateableKeyframe['timing']; declare const verouEaseInOut: AnimateableKeyframe['timing']; declare const easingsNetInSine: AnimateableKeyframe['timing']; declare const easingsNetOutSine: AnimateableKeyframe['timing']; declare const easingsNetInOutSine: AnimateableKeyframe['timing']; declare const easingsNetInQuad: AnimateableKeyframe['timing']; declare const easingsNetOutQuad: AnimateableKeyframe['timing']; declare const easingsNetInOutQuad: AnimateableKeyframe['timing']; declare const easingsNetInCubic: AnimateableKeyframe['timing']; declare const easingsNetOutCubic: AnimateableKeyframe['timing']; declare const easingsNetInOutCubic: AnimateableKeyframe['timing']; declare const easingsNetInQuart: AnimateableKeyframe['timing']; declare const easingsNetInQuint: AnimateableKeyframe['timing']; declare const easingsNetOutQuint: AnimateableKeyframe['timing']; declare const easingsNetInOutQuint: AnimateableKeyframe['timing']; declare const easingsNetInExpo: AnimateableKeyframe['timing']; declare const easingsNetOutExpo: AnimateableKeyframe['timing']; declare const easingsNetInOutExpo: AnimateableKeyframe['timing']; declare const easingsNetInCirc: AnimateableKeyframe['timing']; declare const easingsNetOutCirc: AnimateableKeyframe['timing']; declare const easingsNetInOutCirc: AnimateableKeyframe['timing']; declare const easingsNetInBack: AnimateableKeyframe['timing']; declare const easingsNetOutBack: AnimateableKeyframe['timing']; declare const easingsNetInOutBack: AnimateableKeyframe['timing']; type BroadcastableOptions = { name?: string; }; type BroadcastableStatus = 'ready' | 'broadcasting' | 'broadcasted' | 'errored' | 'stopped'; /** * [Docs](https://baleada.dev/docs/logic/classes/broadcastable) */ declare class Broadcastable { private name; constructor(state: State, options?: BroadcastableOptions); private computedStatus; private ready; get state(): State; set state(state: State); get status(): BroadcastableStatus; private computedChannel; get channel(): BroadcastChannel; private computedError; get error(): Error; private computedState; setState(state: State): this; broadcast(): this; private broadcasting; private broadcasted; private errored; stop(): this; private stopped; } declare function toMessageListenParams(instance: Broadcastable, effect: (event: MessageEvent) => void): Parameters['listen']>; type CompareableOptions = { locales?: Parameters[0]; collator?: Intl.CollatorOptions; }; type CompareableStatus = 'ready' | 'comparing' | 'compared'; declare class Compareable { constructor(string: string, options?: CompareableOptions); private computedStatus; private ready; get string(): string; set string(string: string); get status(): CompareableStatus; private computedCollator; get collator(): Intl.Collator; private computedComparison; get comparison(): 0 | 1 | -1; private computedString; setString(string: string): this; compare(compared: string): this; private comparing; private compared; } type CompleteableOptions = { segment?: { from?: 'start' | 'selection' | 'divider'; to?: 'end' | 'selection' | 'divider'; }; divider?: RegExp; initialSelection?: { start: number; end: number; direction: 'forward' | 'backward' | 'none'; }; }; type CompleteableStatus = 'constructing' | 'ready' | 'completing' | 'completed'; type CompleteOptions = { select?: 'completion' | 'completionEnd' | (({ before, completion, after }: { before: string; completion: string; after: string; }) => Completeable['selection']); }; /** * [Docs](https://baleada.dev/docs/logic/classes/completeable) */ declare class Completeable { private segmentFrom; private segmentTo; private divider; private computedDividerIndices; constructor(string: string, options?: CompleteableOptions); private constructing; private computedStatus; private ready; get string(): string; set string(string: string); get selection(): { start: number; end: number; direction: "forward" | "backward" | "none"; }; set selection(selection: { start: number; end: number; direction: "forward" | "backward" | "none"; }); get status(): CompleteableStatus; get segment(): string; get dividerIndices(): { before: number; after: number; }; private getSegmentStartIndex; private getSegmentEndIndex; private computedString; setString(string: string): this; private computedSelection; setSelection(selection: { start: number; end: number; direction: 'forward' | 'backward' | 'none'; }): this; private setDividerIndices; private toPreviousMatch; private toNextMatch; complete(completion: string, options?: CompleteOptions): this; private getBefore; private getAfter; private completing; private completed; } type CopyableOptions = Record; type CopyableStatus = 'ready' | 'copying' | 'copied' | 'errored'; /** * [Docs](https://baleada.dev/docs/logic/classes/copyable) */ declare class Copyable { private computedIsClipboardText; private copyListenable; private cutListenable; private copyAndCutEffect; constructor(string: string, options?: CopyableOptions); private computedStatus; private ready; get string(): string; set string(string: string); get status(): CopyableStatus; get isClipboardText(): boolean; get response(): undefined; get error(): Error; private computedString; setString(string: string): this; private computedResponse; private computedError; copy(options?: { kind: 'clipboard' | 'deprecated'; }): Promise; private copying; private copied; private errored; listenForClipboardEvents(): void; stop(): void; } type DelayableOptions = { delay?: number; executions?: number | true; }; type DelayableEffect = (timestamp: number) => any; type DelayableStatus = 'ready' | 'delaying' | 'delayed' | 'paused' | 'sought' | 'stopped'; /** * [Docs](https://baleada.dev/docs/logic/classes/delayable) */ declare class Delayable { private animateable; constructor(effect: DelayableEffect, options?: DelayableOptions); private computedStatus; private ready; get effect(): DelayableEffect; set effect(effect: DelayableEffect); get status(): DelayableStatus; get executions(): number; get time(): { elapsed: number; remaining: number; }; get progress(): number; private computedEffect; setEffect(effect: DelayableEffect): this; private frameEffect; private setFrameEffect; private delaying; private delayed; delay(): this; pause(): this; private paused; resume(): this; seek(timeProgress: number): this; private sought; stop(): this; private stopped; } type DrawableStroke = ReturnType; type DrawableOptions = { toD?: (stroke: DrawableStroke) => string; }; type DrawableStatus = 'ready' | 'drawing' | 'drawn'; /** * [Docs](https://baleada.dev/docs/logic/classes/drawable) */ declare class Drawable { private computedD; private toD; constructor(stroke: DrawableStroke, options?: DrawableOptions); computedStatus: DrawableStatus; private ready; get stroke(): perfect_freehand.Vec2[]; set stroke(stroke: perfect_freehand.Vec2[]); get status(): DrawableStatus; get d(): string; private computedStroke; setStroke(stroke: DrawableStroke): this; draw(points: Parameters[0], options?: StrokeOptions): this; private drawing; private drawn; } declare function toD(stroke: number[][]): string; declare function toFlattenedD(stroke: number[][]): string; type ResolveableOptions = Record; type ResolveableStatus = 'ready' | 'resolving' | 'resolved' | 'errored'; /** * [Docs](https://baleada.dev/docs/logic/classes/resolveable) */ declare class Resolveable { constructor(getPromise: () => Promise, options?: ResolveableOptions); private computedStatus; private ready; get getPromise(): () => Promise; set getPromise(getPromise: () => Promise); get status(): ResolveableStatus; get value(): Value; get error(): Error; private computedGetPromise; setGetPromise(getPromise: () => Promise): this; private computedValue; private computedError; resolve(): Promise; private resolving; private resolved; private errored; } type FetchableOptions = { ky?: Options$1 | ((api: ToKyOptionsApi) => Options$1); }; type ToKyOptionsApi = { stop: typeof ky['stop']; }; type FetchableStatus = 'ready' | 'fetching' | 'fetched' | 'retrying' | 'aborted' | 'errored'; type FetchOptions = Omit; type FetchMethodOptions = Omit; /** * [Docs](https://baleada.dev/docs/logic/classes/fetchable) */ declare class Fetchable { private computedArrayBuffer; private computedBlob; private computedFormData; private computedJson; private computedText; constructor(resource: string, options?: FetchableOptions); private computedStatus; private ready; get resource(): string; set resource(resource: string); get status(): FetchableStatus; private computedKy; get ky(): KyInstance; private computedAbortController; get abortController(): AbortController; private computedRetryCount; get retryCount(): number; get response(): Response; get error(): Error; get arrayBuffer(): Resolveable; get blob(): Resolveable; get formData(): Resolveable; get json(): Resolveable; get text(): Resolveable; private computedResource; setResource(resource: string): this; private computedResponse; private computedError; fetch(options?: FetchOptions): Promise; private fetching; private retrying; private fetched; private aborted; private errored; get(options?: FetchMethodOptions): Promise; patch(options?: FetchMethodOptions): Promise; post(options?: FetchMethodOptions): Promise; put(options?: FetchMethodOptions): Promise; delete(options?: FetchMethodOptions): Promise; head(options?: FetchMethodOptions): Promise; abort(): this; } type FullscreenableOptions = Record; type FullscreenableGetElement = ((...args: any[]) => ElementType); type FullscreenableStatus = 'ready' | 'fullscreened' | 'errored' | 'exited'; /** * [Docs](https://baleada.dev/docs/logic/classes/fullscreenable) */ declare class Fullscreenable { constructor(getElement: FullscreenableGetElement, options?: FullscreenableOptions); private computedStatus; private ready; get getElement(): (...args: any[]) => ElementType; set getElement(getElement: (...args: any[]) => ElementType); get status(): FullscreenableStatus; get element(): ElementType; get error(): Error; private computedGetElement; setGetElement(getElement: ((...args: any[]) => ElementType)): this; enter(options?: FullscreenOptions): Promise; private computedError; fullscreen(options?: FullscreenOptions): Promise; private fullscreened; private errored; exit(): Promise; private exited; } type GrantableOptions = Record; type GrantableStatus = 'ready' | 'granting' | 'granted' | 'errored'; /** * [Docs](https://baleada.dev/docs/logic/classes/grantable) */ declare class Grantable { constructor(descriptor: PermissionDescriptor, options?: GrantableOptions); private computedStatus; private ready; get descriptor(): PermissionDescriptor; set descriptor(descriptor: PermissionDescriptor); get permission(): PermissionStatus; get error(): Error; get status(): GrantableStatus; private computedDescriptor; setDescriptor(descriptor: PermissionDescriptor): this; private computedPermission; private computedError; grant(): Promise; private granting; private granted; private errored; } type NavigateableOptions = { initialLocation?: number; }; type NavigateableStatus = 'ready' | 'navigated' | 'navigated to next' | 'navigated to previous' | 'navigated to random' | 'navigated to first' | 'navigated to last'; type NavigateOptions = { allow?: 'possible' | 'any'; }; type NextAndPreviousOptions = { distance?: number; loops?: boolean; }; /** * [Docs](https://baleada.dev/docs/logic/classes/navigateable) */ declare class Navigateable { constructor(array: Item[], options?: NavigateableOptions); private computedStatus; private ready; private computedArray; get array(): Item[]; set array(value: Item[]); private computedLocation; get location(): number; set location(location: number); get status(): NavigateableStatus; get item(): Item; setArray(array: Item[]): this; setLocation(location: number): this; navigate(location: number, options?: NavigateOptions): this; private navigated; private _navigate; next(options?: NextAndPreviousOptions): this; private nexted; previous(options?: NextAndPreviousOptions): this; private previoused; random(): this; private randomed; first(): this; private firsted; last(): this; private lasted; } type OperateableOptions = Record; type OperateableStatus = ('ready' | 'operating' | 'operated' | 'errored'); type OperationAdd = Record> = { operation: 'add'; value: StoredObject; key?: IDBValidKey; }; type OperationPut = Record> = { operation: 'put'; value: StoredObject; key?: IDBValidKey; }; type OperationGet = Record> = { operation: 'get'; query: IDBValidKey | IDBKeyRange; effect?: (result: StoredObject) => void; }; type OperationGetKey = { operation: 'getKey'; query: IDBValidKey | IDBKeyRange; effect?: (result: IDBValidKey | undefined) => void; }; type OperationGetAll = Record> = { operation: 'getAll'; query?: IDBValidKey | IDBKeyRange | null; count?: number; effect?: (result: StoredObject) => void; }; type OperationGetAllKeys = { operation: 'getAllKeys'; query?: IDBValidKey | IDBKeyRange | null; count?: number; effect?: (result: IDBValidKey[]) => void; }; type OperationGetAllRecords = Record> = { operation: 'getAllRecords'; query?: IDBValidKey | IDBKeyRange | null; count?: number; effect?: (result: StoredObject) => void; }; type OperationDelete = { operation: 'delete'; query: IDBValidKey | IDBKeyRange; }; type OperationClear = { operation: 'clear'; }; type OperationCount = { operation: 'count'; query?: IDBValidKey | IDBKeyRange; effect?: (result: number) => void; }; type OperationOpenCursor = Record> = { operation: 'openCursor'; query?: IDBValidKey | IDBKeyRange | null; direction?: IDBCursorDirection; effect?: (cursor: DefinedIDBCursorWithValue | null) => void; }; type DefinedIDBCursorWithValue = Record> = (Omit & { value: StoredObject; }); type OperationOpenKeyCursor = { operation: 'openKeyCursor'; query?: IDBValidKey | IDBKeyRange | null; direction?: IDBCursorDirection; effect?: (cursor: IDBCursor | null) => void; }; type OperationDescriptor = Record, O extends Operation = Operation> = O extends 'add' ? OperationAdd : O extends 'put' ? OperationPut : O extends 'get' ? OperationGet : O extends 'getKey' ? OperationGetKey : O extends 'getAll' ? OperationGetAll : O extends 'getAllKeys' ? OperationGetAllKeys : O extends 'getAllRecords' ? OperationGetAllRecords : O extends 'delete' ? OperationDelete : O extends 'clear' ? OperationClear : O extends 'count' ? OperationCount : O extends 'openCursor' ? OperationOpenCursor : O extends 'openKeyCursor' ? OperationOpenKeyCursor : never; type Operation = ('add' | 'put' | 'get' | 'getKey' | 'getAll' | 'getAllKeys' | 'getAllRecords' | 'delete' | 'clear' | 'count' | 'openCursor' | 'openKeyCursor'); type DefinedIDBObjectStore> = (Omit & { get(query: IDBValidKey | IDBKeyRange): IDBRequest; }); declare function createDefineObjectStore>(): (transaction: IDBTransaction, storeName: StoreName) => DefinedIDBObjectStore; declare class Operateable> { constructor(objectStore: DefinedIDBObjectStore, options?: OperateableOptions); private listenables; private ready; private computedObjectStore; get objectStore(): DefinedIDBObjectStore; set objectStore(objectStore: DefinedIDBObjectStore); private computedStatus; get status(): OperateableStatus; private computedError; get error(): Error; setObjectStore(objectStore: DefinedIDBObjectStore): this; operate(descriptors: OperationDescriptor[]): this; private operating; private operated; private errored; add(descriptor: Omit, 'operation'>): this; put(descriptor: Omit, 'operation'>): this; get(descriptor: Omit, 'operation'>): this; getKey(descriptor: Omit, 'operation'>): this; getAll(descriptor: Omit, 'operation'>): this; getAllKeys(descriptor: Omit, 'operation'>): this; getAllRecords(descriptor: Omit, 'operation'>): this; delete(descriptor: Omit, 'operation'>): this; clear(descriptor: Omit, 'operation'>): this; count(descriptor: Omit, 'operation'>): this; openCursor(descriptor: Omit, 'operation'>): this; openKeyCursor(descriptor: Omit, 'operation'>): this; stop(): this; private stopListenables; } type PickableOptions = { initialPicks?: number | number[]; }; type PickableStatus = 'ready' | 'picked' | 'omitted'; type PickOptions = { replace?: 'none' | 'all' | 'fifo' | 'lifo'; allowsDuplicates?: boolean; }; /** * [Docs](https://baleada.dev/docs/logic/classes/pickable) */ declare class Pickable { constructor(array: Item[], options?: PickableOptions); private computedStatus; private ready; private computedArray; get array(): Item[]; set array(array: Item[]); private computedPicks; get picks(): number[]; set picks(indices: number[]); computedFirst: number; get first(): number; computedLast: number; get last(): number; get oldest(): number; get newest(): number; get items(): Item[]; private toItems; computedMultiple: boolean; get multiple(): boolean; get status(): PickableStatus; private toPossiblePicks; setArray(array: Item[]): this; setPicks(indexOrIndices: number | number[]): this; pick(indexOrIndices: number | number[], options?: PickOptions): this; private picked; omit(indexOrIndices?: number | number[], options?: { reference?: 'array' | 'picks'; }): this; private omitted; } type ShareableOptions = Record; type ShareableStatus = 'ready' | 'sharing' | 'shared' | 'errored'; /** * [Docs](https://baleada.dev/docs/logic/classes/shareable) */ declare class Shareable { constructor(shareData: ShareData, options?: ShareableOptions); private computedStatus; private ready; get shareData(): ShareData; set shareData(shareData: ShareData); get status(): ShareableStatus; private computedCan; get can(): Resolveable; private computedError; get error(): Error; private computedState; setShareData(shareData: ShareData): this; share(): Promise; private sharing; private shared; private errored; } type StoreableOptions = { kind?: 'local' | 'session'; statusKeySuffix?: string; }; type StoreableStatus = 'ready' | 'constructing' | 'stored' | 'errored' | 'removed'; /** * [Docs](https://baleada.dev/docs/logic/classes/storeable) */ declare class Storeable { private kind; private statusKeySuffix; constructor(key: string, options?: StoreableOptions); private constructing; private computedStatus; private ready; get key(): string; set key(key: string); get status(): StoreableStatus; get storage(): Storage; get string(): String; get error(): Error; private computedKey; private computedStatusKey; setKey(key: string): this; private computedString; private computedError; store(string: String): this; private stored; private errored; private storeStatus; remove(): this; private removed; removeStatus(): this; } type TransactableOptions = Record; type TransactableStatus = ('constructing' | 'ready' | 'opening' | 'opened' | 'openblocked' | 'openerrored' | 'upgradeneeded' | 'closing' | 'closed' | 'transacting' | 'transacted' | 'transacterrored' | 'transactaborted' | 'deleting' | 'deleteerrored' | 'deleted'); type TransactEffect = (transaction: IDBTransaction) => any; type OpenOptions = { version?: number; upgradeEffect?: (db: IDBDatabase) => void; }; type TransactOptions = ({ effect?: TransactEffect; storeNames?: Parameters[0]; mode?: Parameters[1]; } & IDBTransactionOptions); declare class Transactable { constructor(name: string, options?: TransactableOptions); private constructing; private computedStatus; private listenables; private ready; get name(): string; set name(name: string); private computedDb; get db(): IDBDatabase; private computedError; get error(): Error; get status(): TransactableStatus; private computedName; setName(name: string): this; open(options?: OpenOptions): this; private requestOpen; private opening; private opened; private openblocked; private openerrored; private upgradeneeded; transact(effect: TransactEffect, options?: TransactOptions): this; private transacted; private transacterrored; private transactaborted; private transacting; readonly(effect: TransactEffect, options?: Omit): this; readwrite(effect: TransactEffect, options?: Omit): this; versionchange(effect: TransactEffect, options?: Omit): this; close(): this; private closing; private closed; delete(): this; private requestDelete; private deleting; private deleteerrored; private deleted; stop(): this; private stopListenables; } type ArrayAsyncEffect = (array: Item[]) => Promise; /** * [Docs](https://baleada.dev/docs/logic/links/for-each-async) */ declare function createForEachAsync(effect: (item: Item, index: number) => any): ArrayAsyncEffect; type ObjectEffect = (object: Record) => Record; /** * [Docs](https://baleada.dev/docs/logic/links/set) */ declare function createSet(key: Key, value: Value): ObjectEffect; /** * [Docs](https://baleada.dev/docs/logic/links/delete) */ declare function createDelete(key: Key): ObjectEffect; /** * [Docs](https://baleada.dev/docs/logic/links/clear) */ declare function createClear(): ObjectEffect; declare function createDepthPathConfig(directedAcyclic: Graph | GraphAsync): CreatePathConfig; declare function createBreadthPathConfig(directedAcyclic: Graph | GraphAsync): CreatePathConfig; type KeypressType = 'keydown' | 'keyup' | 'visibilitychange'; type KeypressMetadata = { keycombo: string; } & KeyboardTimeMetadata; type KeypressOptions = CreateKeycomboMatchOptions$1 & { minDuration?: number; preventsDefaultUnlessDenied?: boolean; onDown?: KeypressHook; onUp?: KeypressHook; onVisibilitychange?: KeypressHook; }; type KeypressHook = (api: KeypressHookApi) => any; type KeypressHookApi = HookApi; declare function createKeypress(keycomboOrKeycombos: string | string[], options?: KeypressOptions): { keydown: { effect: RecognizeableEffect<"keydown", KeypressMetadata>; stop: () => void; }; keyup: RecognizeableEffect<"keyup", KeypressMetadata>; visibilitychange: RecognizeableEffect<"visibilitychange", KeypressMetadata>; }; declare class Keypress extends Listenable { constructor(keycomboOrKeycombos: string | string[], options?: KeypressOptions); get metadata(): KeypressMetadata; } type KeyreleaseType = 'keydown' | 'keyup' | 'visibilitychange'; type KeyreleaseMetadata = { keycombo: string; } & KeyboardTimeMetadata; type KeyreleaseOptions = CreateKeycomboMatchOptions$1 & { minDuration?: number; preventsDefaultUnlessDenied?: boolean; onDown?: KeyreleaseHook; onUp?: KeyreleaseHook; onVisibilitychange?: KeyreleaseHook; }; type KeyreleaseHook = (api: KeyreleaseHookApi) => any; type KeyreleaseHookApi = HookApi; declare function createKeyrelease(keycomboOrKeycombos: string | string[], options?: KeyreleaseOptions): { keydown: { effect: RecognizeableEffect<"keydown", KeyreleaseMetadata>; stop: () => void; }; keyup: RecognizeableEffect<"keyup", KeyreleaseMetadata>; visibilitychange: RecognizeableEffect<"visibilitychange", KeyreleaseMetadata>; }; declare class Keyrelease extends Listenable { constructor(keycomboOrKeycombos: string | string[], options?: KeyreleaseOptions); get metadata(): KeyreleaseMetadata; } type KeychordType = 'keydown' | 'keyup' | 'visibilitychange'; type KeychordMetadata = { played: ({ keycombo: string; } & KeyboardTimeMetadata)[]; }; type KeychordOptions = CreateKeycomboMatchOptions$1 & { minDuration?: number; maxInterval?: number; preventsDefaultUnlessDenied?: boolean; onDown?: KeychordHook; onUp?: KeychordHook; onVisibilitychange?: KeychordHook; }; type KeychordHook = (api: KeychordHookApi) => any; type KeychordHookApi = HookApi; declare function createKeychord(keycombos: string, options?: KeychordOptions): { keydown: RecognizeableEffect<"keydown", KeychordMetadata>; keyup: RecognizeableEffect<"keyup", KeychordMetadata>; visibilitychange: RecognizeableEffect<"visibilitychange", KeychordMetadata>; }; declare class Keychord extends Listenable { constructor(keycombos: string, options?: KeychordOptions); get metadata(): KeychordMetadata; } type KonamiType = KeychordType; type KonamiMetadata = KeychordMetadata; type KonamiOptions = KeychordOptions; type KonamiHook = KeychordHook; type KonamiHookApi = KeychordHookApi; declare function createKonami(options?: KonamiOptions): { keydown: RecognizeableEffect<"keydown", KeychordMetadata>; keyup: RecognizeableEffect<"keyup", KeychordMetadata>; visibilitychange: RecognizeableEffect<"visibilitychange", KeychordMetadata>; }; declare class Konami extends Listenable { constructor(options?: KonamiOptions); get metadata(): KeychordMetadata; } type PointerpressType = 'pointerdown' | 'pointerout' | 'pointerup'; type PointerpressMetadata = PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata; type PointerpressOptions = { minDuration?: number; minDistance?: number; onDown?: PointerpressHook; onMove?: PointerpressHook; onOut?: PointerpressHook; onUp?: PointerpressHook; }; type PointerpressHook = (api: PointerpressHookApi) => any; type PointerpressHookApi = HookApi; /** * [Docs](https://baleada.dev/docs/logic/factories/pointerpress) */ declare function createPointerpress(options?: PointerpressOptions): { pointerdown: { effect: RecognizeableEffect<"pointerdown", PointerpressMetadata>; stop: (target: RecognizeableStopTarget) => void; }; pointerout: RecognizeableEffect<"pointerout", PointerpressMetadata>; pointerup: RecognizeableEffect<"pointerup", PointerpressMetadata>; }; declare class Pointerpress extends Listenable { constructor(options?: PointerpressOptions); get metadata(): PointerpressMetadata; } type PointerhoverType = 'pointerover' | 'pointerout'; type PointerhoverMetadata = (PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata); type PointerhoverOptions = { minDuration?: number; onOver?: PointerhoverHook; onOut?: PointerhoverHook; }; type PointerhoverHook = (api: PointerhoverHookApi) => any; type PointerhoverHookApi = HookApi; /** * [Docs](https://baleada.dev/docs/logic/factories/pointerhover) */ declare function createPointerhover(options?: PointerhoverOptions): { pointerover: { effect: RecognizeableEffect<"pointerover", PointerhoverMetadata>; stop: () => void; }; pointerout: RecognizeableEffect<"pointerout", PointerhoverMetadata>; }; declare class Pointerhover extends Listenable { constructor(options?: PointerhoverOptions); get metadata(): PointerhoverMetadata; } export { type AnimateFrame, type AnimateFrameEffect, type AnimateOptions, Animateable, type AnimateableKeyframe, type AnimateableOptions, type AnimateableStatus, type AssociativeArray, Broadcastable, type BroadcastableOptions, type BroadcastableStatus, type ColorInterpolationMethod, Compareable, type CompareableOptions, type CompareableStatus, type CompleteOptions, Completeable, type CompleteableOptions, type CompleteableStatus, Copyable, type CopyableOptions, type CopyableStatus, type CreateStepsOptions$1 as CreateDirectedAcyclicStepsOptions, type CreateFocusableOptions, type CreateGraphOptions, type CreateKeycomboMatchOptions, type CreateMixOptions, type CreatePathConfig, type CreateResultsOptions, type DefinedIDBObjectStore, Delayable, type DelayableEffect, type DelayableOptions, type DelayableStatus, Drawable, type DrawableOptions, type DrawableStatus, type DrawableStroke, Fetchable, type FetchableOptions, type FetchableStatus, Fullscreenable, type FullscreenableGetElement, type FullscreenableOptions, type FullscreenableStatus, Grantable, type GrantableOptions, type GrantableStatus, type Graph, type GraphAsync, type GraphAsyncEdge, type GraphCommonAncestor, type GraphEdge, type GraphNode, type GraphPath, type GraphState, type GraphStep, type GraphTree, type GraphTreeNode, type KeyboardEventDescriptor, Keychord, type KeychordHook, type KeychordHookApi, type KeychordMetadata, type KeychordOptions, type KeychordType, Keypress, type KeypressHook, type KeypressHookApi, type KeypressMetadata, type KeypressOptions, type KeypressType, Keyrelease, type KeyreleaseHook, type KeyreleaseHookApi, type KeyreleaseMetadata, type KeyreleaseOptions, type KeyreleaseType, Konami, type KonamiHook, type KonamiHookApi, type KonamiMetadata, type KonamiOptions, type KonamiType, type ListenEffect, type ListenEffectParam, type ListenOptions, Listenable, type ListenableActive, type ListenableKeycombo, type ListenableMousecombo, type ListenableOptions, type ListenablePointercombo, type ListenableStatus, type ListenableSupportedEventType, type ListenableSupportedType, type MixColor, Navigateable, type NavigateableOptions, type NavigateableStatus, type NextAndPreviousOptions, type OpenOptions, Operateable, type OperateableOptions, type OperateableStatus, type OperationDescriptor, type PickOptions, Pickable, type PickableOptions, type PickableStatus, Pointerhover, type PointerhoverHook, type PointerhoverHookApi, type PointerhoverMetadata, type PointerhoverOptions, type PointerhoverType, Pointerpress, type PointerpressHook, type PointerpressHookApi, type PointerpressMetadata, type PointerpressOptions, type PointerpressType, type Potentiality, type RecognizeOptions, Recognizeable, type RecognizeableEffect, type RecognizeableEffectConfig, type RecognizeableOptions, type RecognizeableStatus, type RecognizeableStopTarget, Resolveable, type ResolveableOptions, type ResolveableStatus, Shareable, type ShareableOptions, type ShareableStatus, Storeable, type StoreableOptions, type StoreableStatus, type ToGraphYielded, type TransactEffect, type TransactOptions, Transactable, type TransactableOptions, type TransactableStatus, createFormat$2 as createArrayFormat, createClear$1 as createAssociativeArrayClear, createDelete$1 as createAssociativeArrayDelete, createHas$1 as createAssociativeArrayHas, createKeys$1 as createAssociativeArrayKeys, createSet$1 as createAssociativeArraySet, createValue$1 as createAssociativeArrayValue, createValues as createAssociativeArrayValues, createBreadthPathConfig, createChildren, createClamp, createClear, createClip, createClone, createComputedStyle, createConcat, createFormat$1 as createDateFormat, createAncestor$1 as createDecisionTreeAncestor, createCommonAncestors$1 as createDecisionTreeCommonAncestors, createNodeDepthFirstSteps$1 as createDecisionTreeNodeDepthFirstSteps, createPath$1 as createDecisionTreePath, createDepthFirstSteps$1 as createDecisionTreeSteps, createTree$1 as createDecisionTreeTree, createDeepEqual, createDeepMerge, createDefineObjectStore, createDelete, createDepthPathConfig, createDetermine, createAncestor$2 as createDirectedAcyclicAncestor, createAncestor as createDirectedAcyclicAsyncAncestor, createCommonAncestors as createDirectedAcyclicAsyncCommonAncestors, createDepthFirstSteps as createDirectedAcyclicAsyncDepthFirstSteps, createLayers as createDirectedAcyclicAsyncLayers, createNodeDepthFirstSteps as createDirectedAcyclicAsyncNodeDepthFirstSteps, createPath as createDirectedAcyclicAsyncPath, createTree as createDirectedAcyclicAsyncTree, createCommonAncestors$2 as createDirectedAcyclicCommonAncestors, createDepthFirstSteps$2 as createDirectedAcyclicDepthFirstSteps, createLayers$1 as createDirectedAcyclicLayers, createNodeDepthFirstSteps$2 as createDirectedAcyclicNodeDepthFirstSteps, createPath$2 as createDirectedAcyclicPath, createRoots as createDirectedAcyclicRoots, createTree$2 as createDirectedAcyclicTree, createEntries, createEqual, createEvery, createFilter, createFilterAsync, createFindAsync, createFindIndexAsync, createFocusable, createForEachAsync, createGraph, createGreater, createGreaterOrEqual, createHas, createIncoming, createIndegree, createInsert, createKeychord, createKeycomboMatch, createKeypress, createKeyrelease, createKeys, createKonami, createLess, createLessOrEqual, createList, createMap, createMapAsync, createMix, createNumber, createFormat as createNumberFormat, createOmit, createOnlyChild, createOutdegree, createOutgoing, createPick, createPointerhover, createPointerpress, createReduce, createReduceAsync, createRemove, createReorder, createReplace, createResults, createReverse, createRoot, createSanitize, createSet, createShuffle, createSiblings, createSlice, createSlug, createSome, createSort, createSwap, createTerminal, createTotalSiblings, createFind as createTreeFind, createTry, createTryAsync, createUnique, createValue, defineAnimateableKeyframes, defineAssociativeArray, defineGraph, defineGraphAsync, defineGraphAsyncEdge, defineGraphAsyncEdges, defineGraphEdge, defineGraphEdges, defineGraphNode, defineGraphNodes, easingsNetInBack, easingsNetInCirc, easingsNetInCubic, easingsNetInExpo, easingsNetInOutBack, easingsNetInOutCirc, easingsNetInOutCubic, easingsNetInOutExpo, easingsNetInOutQuad, easingsNetInOutQuint, easingsNetInOutSine, easingsNetInQuad, easingsNetInQuart, easingsNetInQuint, easingsNetInSine, easingsNetOutBack, easingsNetOutCirc, easingsNetOutCubic, easingsNetOutExpo, easingsNetOutQuad, easingsNetOutQuint, easingsNetOutSine, fromAliasToCode, fromCodeToAliases, fromKeyboardEventDescriptorToAliases, fromShorthandAliasToLonghandAlias, linear, materialAccelerated, materialDecelerated, materialStandard, toD, toFlattenedD, toMessageListenParams, verouEase, verouEaseIn, verouEaseInOut, verouEaseOut };