import { GraphError } from '../types/errors'; import { Edge, Node } from '../types/graph'; import { Option } from '../types/option'; import { Result } from '../types/result'; /** * Type guard to check if a value is a Node. * @param value - Value to check * @returns true if value is a Node */ export declare const isNode: (value: unknown) => value is Node; /** * Type guard to check if a value is an Edge. * @param value - Value to check * @returns true if value is an Edge */ export declare const isEdge: (value: unknown) => value is Edge; /** * Type guard to check if a Result is Ok. * @param result - Result to check * @returns true if Result is Ok */ export declare const isOk: (result: Result) => result is { ok: true; value: T; }; /** * Type guard to check if a Result is Err. * @param result - Result to check * @returns true if Result is Err */ export declare const isErr: (result: Result) => result is { ok: false; error: E; }; /** * Type guard to check if an Option is Some. * @param option - Option to check * @returns true if Option is Some */ export declare const isSome: (option: Option) => option is { some: true; value: T; }; /** * Type guard to check if an Option is None. * @param option - Option to check * @returns true if Option is None */ export declare const isNone: (option: Option) => option is { some: false; }; /** * Type guard to check if an error is a specific GraphError variant. * @param error - Error to check * @param type - Error type to match * @returns true if error matches the specified type * @example * ```typescript * if (isGraphErrorType(error, 'duplicate-node')) { * console.log('Duplicate node:', error.nodeId); * } * ``` */ export declare const isGraphErrorType: (error: GraphError, type: T) => error is Extract; //# sourceMappingURL=type-guards.d.ts.map