/** * Does nothing when called. */ export declare const noop: (...args: Array) => any; /** * Async function that returns a resolved promise. */ export declare const noop_async: (...args: Array) => Promise; /** * A singleton resolved `Promise`. */ export declare const resolved: Promise; /** * Returns the first arg. */ export declare const identity: (t: T) => T; /** * Represents a value wrapped in a function. * Useful for lazy values and bridging reactive boundaries in Svelte. */ export type Thunk = () => T; /** * Returns the result of calling `value` if it's a function, * otherwise it's like the `identity` function and passes it through. */ export declare const unthunk: (value: T | Thunk) => T; //# sourceMappingURL=function.d.ts.map