import './integration-declarations'; import { ResolveOrReturn } from '@glint/template/-private/dsl'; import { DirectInvokable, Invokable, InvokableInstance, Invoke, InvokeDirect, } from '@glint/template/-private/integration'; import { Globals } from './globals'; export * from '@glint/template/-private/dsl'; export { Globals }; // Items that can be directly invoked by value export declare function resolve(item: T): T[typeof InvokeDirect]; // Items whose instance type can be invoked export declare function resolve( item: (abstract new (...args: Args) => Instance) | null | undefined ): (...args: Parameters) => ReturnType; // Plain functions export declare function resolve any) | null | undefined>( item: T ): NonNullable; export declare const resolveOrReturn: ResolveOrReturn; // In loose mode, binding helpers accept not just actual invokables but also simply their string names. export declare function resolveForBind(item: T): T[typeof InvokeDirect]; // Items whose instance type can be invoked export declare function resolveForBind( item: abstract new (...args: Args) => Instance ): (...args: Parameters) => ReturnType; export declare function resolveForBind( item: (abstract new (...args: Args) => Instance) | null | undefined ): ((...args: Parameters) => ReturnType) | null; // Plain functions export declare function resolveForBind any) | null | undefined>( item: T ): T; export declare function resolveForBind any) | null | undefined>( item: T | null | undefined ): NonNullable | null; // String lookups export declare function resolveForBind( item: T ): Globals[T] extends Invokable ? F : Globals[T] extends DirectInvokable ? F : Globals[T]; export declare function resolveForBind( item: T | null | undefined ): | (Globals[T] extends Invokable ? F : Globals[T] extends DirectInvokable ? F : Globals[T]) | null;