import type Token from 'markdown-it/lib/token';
export declare const attrsFromEntries: (tok: Token) => {
    [k: string]: string;
};
export type TryCatchReturnType<R> = {
    success: true;
    result: R;
} | {
    success: false;
    error: any;
};
export declare function tryCatch<R>(fn: () => R): TryCatchReturnType<R>;
