import { Component, ComponentDefinition } from './component'; import { Store } from './store'; export * from './block'; export * from './iterate'; export * from './key-iterate'; export * from './injector'; export * from './scope'; export * from './attribute'; export * from './event'; export * from './slot'; export * from './ref'; export * from './component'; export * from './inner-html'; export * from './dom'; export * from './partial'; export * from './store'; export * from './animation'; export * from './use'; export { assign, obj } from './utils'; export type { Changes } from './types'; declare type FilterCallback = (value: T, key: string | number) => boolean; interface ComponentOptions { /** Parent element where created component should be mounted */ target?: HTMLElement; /** Initial component props */ props?: Record; /** Store for component */ store?: Store; /** If `true`, do not attach component to target */ detached?: boolean; } /** * Creates Endorphin component and mounts it into given `options.target` container */ export default function endorphin(name: string, definition: ComponentDefinition, options?: ComponentOptions): Component; /** * Safe property getter */ export declare function get(ctx: any): any; /** * Invokes `methodName` of `ctx` object with given args */ export declare function call(ctx: Record, methodName: string, args?: any[]): any; /** * Filter items from given collection that matches `fn` criteria and returns * matched items */ export declare function filter(collection: T[], fn: FilterCallback): T[]; /** * Finds first item in given `collection` that matches truth test of `fn` */ export declare function find(collection: T[] | Map | Set, fn: FilterCallback): T | null | undefined;