import type { Context } from "./types.js"; /** * Create a new {@link Context} * * @example * ```ts * import { createContext, main } from "effection"; * * const YourContext = createContext("context-id"); * * await main(function* () { * yield* YourContext.with("abc-123", function* () { * console.log(yield* YourContext.expect()); // "abc-123" * }); * }); * ``` * * @param name - the unique name to give this context. * @returns the new context * @since 3.0 */ export declare function createContext(name: string, defaultValue?: T): Context;