import { Oso } from "oso"; import { Value } from "./clause.js"; import { SQLFunction } from "./sql.js"; export interface LiteralsContext { use: (func: () => Promise) => Promise; get: () => Map; } export declare function registerFunctions(oso: Oso, functions: SQLFunction[]): LiteralsContext; export interface CreateOsoArgs { paths: string[]; functions: SQLFunction[]; vars?: Record; } export interface CreateOsoResult { oso: Oso; literalsContext: LiteralsContext; } export declare function createOso({ paths, functions, vars, }: CreateOsoArgs): Promise; export declare class OsoError extends Error { }