/** * Discriminated success/error wrapper for SDK operations (`success`, `data`, `error`). */ export declare class Result { readonly success: boolean; readonly data: T | null; readonly error: string | null; private constructor(); /** * Create a successful result with data. */ static ok(data: T): Result; /** * Create a failed result with an error message. */ static fail(error: string): Result; /** * Check if the result is successful (for boolean coercion). */ isOk(): boolean; /** * Check if the result is a failure. */ isErr(): boolean; /** * Get the data or throw an error if the result is a failure. */ unwrap(): T; /** * Get the data or return a default value if the result is a failure. */ unwrapOr(defaultValue: T): T; /** * Map the data to a new type if the result is successful. */ map(fn: (data: T) => U): Result; /** * Chain another Result-returning operation if this result is successful. */ andThen(fn: (data: T) => Result): Result; } //# sourceMappingURL=result.d.ts.map